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.

Data Point Selection Event

Thread ID:

Created:

Updated:

Platform:

Replies:

119436 Jun 19,2015 05:37 PM Aug 8,2016 06:22 AM Xamarin.Forms 6
loading
Tags: SfChart
Alexander
Asked On June 19, 2015 05:37 PM

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 

Yuvaraj Palanisamy [Syncfusion]
Replied On June 22, 2015 06:21 AM

 
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


Alexander
Replied On June 22, 2015 02:44 PM

Hi Yuvaraj

thank you for all your help, works perfectly


see you soon 

Yuvaraj Palanisamy [Syncfusion]
Replied On June 23, 2015 01:07 AM

Hi Alexander,

Thanks for the update.

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

Thanks,
Yuvaraj

Mohamed Aymen HADDAD
Replied On August 5, 2016 11:33 AM

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.

Mohamed Aymen HADDAD
Replied On August 5, 2016 11:35 AM

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.

Yuvaraj Palanisamy [Syncfusion]
Replied On August 8, 2016 06:22 AM

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 


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.

;