This is a migrated thread and some comments may be shown as answers.

Selecting Pie Chart slice in code

1 Answer 75 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sal
Top achievements
Rank 1
Sal asked on 08 Mar 2016, 08:49 PM
So I know the SelectionBehavior() for the RadListView has the option to set a selected item in code (changeIsSelected) but is there a similar function in the ChartSelectionBehavior? I have a Pie Chart that I need to have certain points selected in code but I can't find anything in the documentation to do this. 

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 11 Mar 2016, 03:27 PM
Hello Sal,

Thanks for writing.
You can programmatically select a point like this:
series.dataPoints().get(0).setIsSelected(true);

Regards,
Victor
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Sal
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or