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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





118508 Mar 13,2015 08:58 PM UTC Mar 17,2015 05:13 AM UTC WPF 4
Tags: SfChart
Herbert Moroni Cavallari de Costa Gois
Asked On March 13, 2015 08:58 PM UTC

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?

Herbert Moroni Cavallari de Costa Gois
Replied On 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?

Sheik Syed Abthaheer M [Syncfusion]
Replied On 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.

M. Sheik

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

Sheik Syed Abthaheer

i really want to thank you! it resolved my problem

Have a nice week

Sheik Syed Abthaheer M [Syncfusion]
Replied On 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.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon