We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Create a contextmenu in sfchart column and I find out which was clicked with their properties

eu tenho um problema com os clicks ou achar uma coluna especifica.

Primeiramente, o caso do contexmenu.

- Criei um ContextMenu com alguns itens e associei com a series 
mas quando eu clico na coluna, eu não sei qual coluna estou clicando, e sei apenas a serie a qual cliquei

eu quero saber qual a coluna que eu cliquei para poder enviar os dados para outro lugar

e por ultimo... aproveitando o ticket 
quando eu clico em uma coluna com o botão esquerdo, ele seleciona a coluna em questão

como depois eu posso verificar todas as colunas selecionadas?

4 Replies

HM Herbert Moroni Cavallari de Costa Gois March 13, 2015 09:00 PM UTC

I have a problem with clicks or find a specific column.

First, the case of contexmenu.

- I created a ContextMenu with some items and I associated with the series
but when I click on the column, I do not know which column'm clicking, and only know the series which clicked

I want to know which column I clicked to send the data to another place

and finally ... taking advantage of the ticket
when I click on a column with the left button, it selects the column in question

as then I can check all the selected columns?


SS Sheik Syed Abthaheer M Syncfusion Team March 16, 2015 11:34 AM UTC


Hi Herbert,

Thanks for using Syncfusion products.

We have analyzed your query and you can get the Column segment in mouse down event by using the below code snippet.

Code Snippet [C#]:

private void ColumnSeries_MouseDown(object sender, MouseButtonEventArgs e)

        {

            FrameworkElement element = e.OriginalSource as FrameworkElement;

            if (element != null && element.Tag is ChartSegment)

            {

                ColumnSegment segment = element.Tag as ColumnSegment;

            }

        }

We have prepared the sample based on your requirement. Please find the sample in the below location.

Sample: SelectionDemo.zip

Please let us know if you need any further assistence on this.

Regards,
M. Sheik




HM Herbert Moroni Cavallari de Costa Gois March 16, 2015 02:01 PM UTC

Sheik Syed Abthaheer

i really want to thank you! it resolved my problem

Have a nice week


SS Sheik Syed Abthaheer M Syncfusion Team March 17, 2015 05:13 AM UTC

Hi Herbert,

Thanks for the update.

Please let us know if you need any further assistance on this.

Regards,

M.Sheik



Loader.
Up arrow icon