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.

How to programmatically deselect a data point?

Thread ID:

Created:

Updated:

Platform:

Replies:

123873 Apr 28,2016 10:17 AM Apr 29,2016 09:07 AM Android 2
loading
Tags: SfChart
Naryoril
Asked On April 28, 2016 10:17 AM

Hi

I have a pie and a column chart where when i select a data point another activity is opened. When i use the back button to go back to the chart the data point is still selected. If i try to set SelectedDataPointIndex to -1, which is the value it has before anything is selected, i get an index out of bounds exception.
I could make a bunch of workarounds to achieve the behaviour i want (if you just remove the visuals of the selection, and the user selects the same data point again, it is technically a deselection, which must also be handled accordingly), but it would be much easier and especially cleaner to just deselect the data point. Is there a way to do this?

Saravana Pandian Murugan [Syncfusion]
Replied On April 29, 2016 09:04 AM

Hi Rafael,

We have modified the sample as per your requirement. Please find the sample from the following link.

Sample : http://www.syncfusion.com/downloads/support/forum/123873/ze/MainActivity-458766632

Thanks,
Prabakaran R. 


Saravana Pandian Murugan [Syncfusion]
Replied On April 29, 2016 09:07 AM

Hi Rafael,

We have modified the sample as per your requirement. Please find the sample from the following link.

Sample : http://www.syncfusion.com/downloads/support/forum/123873/ze/MainActivity-458766632  

Thanks,
Saravana Pandian M.

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.

;