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
close icon

Data Point Selection Event

Hi everyone

I want to now if I can handle the Data point selection event, I I have to show a popup with information when the column is selected, I am working with MVVM pattern and my views are on XAML

thanks for your help 

6 Replies

YP Yuvaraj Palanisamy Syncfusion Team June 22, 2015 10:21 AM UTC

 
Hi Alexander,
Thanks for using Syncfusion products.

We request you to use the following code to get the notification when selection is changed in the MVVM pattern.

[C#]


public class CustomSelectionBehavior : ChartSelectionBehavior

    {

        protected override void OnSelectionChanged(ChartSelectionEventArgs arg)

        {

            base.OnSelectionChanged(arg);

            //create a popupwindow

        }

    }



[XAML]

<chart:SfChart.ChartBehaviors>
      <local:CustomSelectionBehavior />
</chart:SfChart.ChartBehaviors>



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


Thanks,

Yuvaraj P



AL Alexander June 22, 2015 06:44 PM UTC

Hi Yuvaraj

thank you for all your help, works perfectly


see you soon 


YP Yuvaraj Palanisamy Syncfusion Team June 23, 2015 05:07 AM UTC

Hi Alexander,

Thanks for the update.

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

Thanks,
Yuvaraj


MA Mohamed Aymen HADDAD replied to Yuvaraj Palanisamy August 5, 2016 03:33 PM UTC

Hi Alexander,

Thanks for the update.

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

Thanks,
Yuvaraj

Hello every one,
Is there any possibility to have a sample where instead of prompting an Alert you Navigate to another Page ?
Thank you in Advance.


MA Mohamed Aymen HADDAD August 5, 2016 03:35 PM UTC

Hello every one,
Is there any possibility to have a sample where instead of prompting an Alert you Navigate to another Page ?
Thank you in Advance.


YP Yuvaraj Palanisamy Syncfusion Team August 8, 2016 10:22 AM UTC

Hi Alexander,  
 
We have prepared a sample as per your requirement using SelectionChanging event in SfChart. Please find the sample from the below location,  
  
   
Thanks,  
Yuvaraj 


Loader.
Live Chat Icon For mobile
Up arrow icon