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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

118508 Mar 13,2015 04:58 PM Mar 17,2015 01:13 AM WPF 4
loading
Tags: SfChart
Herbert Moroni Cavallari de Costa Gois
Asked On March 13, 2015 04:58 PM

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 05:00 PM

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 07:34 AM


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



Herbert Moroni Cavallari de Costa Gois
Replied On March 16, 2015 10:01 AM

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 01:13 AM

Hi Herbert,

Thanks for the update.

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

Regards,

M.Sheik



CONFIRMATION

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.

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.

;