Selecting Pie Chart slice in code

2 posts, 0 answers
  1. Sal
    Sal avatar
    58 posts
    Member since:
    Feb 2015

    Posted 08 Mar Link to this post

    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. 
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 11 Mar Link to this post

    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
  3. DevCraft banner
Back to Top