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

Data Point Selection Event

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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


Alexander
Replied On June 22, 2015 06:44 PM UTC

Hi Yuvaraj

thank you for all your help, works perfectly


see you soon 

Yuvaraj Palanisamy [Syncfusion]
Replied On 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

Mohamed Aymen HADDAD
Replied On 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.

Mohamed Aymen HADDAD
Replied On 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.

Yuvaraj Palanisamy [Syncfusion]
Replied On 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 


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.

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

;