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

Selecting an Item in the chart

Thread ID:





120964 Oct 29,2015 07:04 PM UTC Nov 2,2015 10:59 AM UTC Xamarin.Forms 3
Tags: SfChart
Kieran Pierce
Asked On October 29, 2015 07:04 PM UTC

Hi support and all,

I haev see that there is a selestedItem property in the WPF version of the chart, can this also be used in Forms? What i want to do is if a user selects a whole column I want to navigate to a new page with detail about the selected column

Magesh Kumar Krishnan [Syncfusion]
Replied On October 30, 2015 10:53 AM UTC

Hi Kieran,

We have prepared the sample for your requirement using SelectionChanged event. Please download the sample from below link.


Magesh Kumar K

Kieran Pierce
Replied On October 30, 2015 02:49 PM UTC

Cool thanks, any chance you could show me using XMAL for the config of the chart? I tried adding a SelectionChanged binding to the definition of the chart but it did not work. is there a way i can get a list if all avilavle commands when builing using SFCHart like I can with other tools in the xamain tool set? I use VS 2013 if that chnages the way intelsense works by the way.

Thanks for your help Kieran

Magesh Kumar Krishnan [Syncfusion]
Replied On November 2, 2015 10:59 AM UTC

Hi Kieran,

The SelectionChanged API is an event and we cannot bind it to another property. In the XAML, you must provide event handler name as a value for the API and in code behind you can navigate to a new page with the details which you get in this event.

Another way, to write a custom class derived from the ChartSelectionBehavior and override OnSelectionChanged method to navigate to the new page. By this approach, you can keep it as separate class to avoid writing code in code behind file, which will be useful in the MVVM pattern. Refer to the following sample.

However, we have logged a feature report to implement the SelectedItem/Command property for binding it easily with the view model.

Regarding your query "is there a way I can get a list if all avilavle commands when builing using SFCHart.”

Could you please let us know whether you are asking the list of features available in the SfChart or the events available in the SfChart?

Magesh Kumar K


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

This page will automatically be redirected to the 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