Getting selected Data Points when multiple are selected

4 posts, 1 answers
  1. Rob
    Rob avatar
    2 posts
    Member since:
    Oct 2010

    Posted 14 Oct 2010 Link to this post

    Hi,

    I have Charts that allow multiple selection of items - this is working nicely.  

    On the ItemClick event I would like to be able to get all of the selected data points, but I can't seem to find the hook to retrieve these (ItemClick only passes through the Item that has just been clicked on).

    Is there a mechanism to retrieve all of the selected data points in this scenario?

    Thanks

    Rob.
  2. Answer
    Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 19 Oct 2010 Link to this post

    Hello Rob,

    At present, there is no straightforward option to handle this scenario. In the ItemClick event handler, you can get information related to the current item, as well as the dataseries to which this item belongs. You can store this information, and determine how many items have been selected, as well as which series each datapoint belongs.
    I hope this approach gets you started properly.

    Greetings,
    Yavor
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. Rob
    Rob avatar
    2 posts
    Member since:
    Oct 2010

    Posted 26 Oct 2010 Link to this post

    Thanks for the workaround - I was worried that I was missing an obvious point to retrieve this data.

    Cheers!
  4. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 27 Oct 2010 Link to this post

    Hi Rob,

    As a quick follow up on the issue discussed previously, I wanted to let you know that in the latest version of the control, you can use the ChartArea.SelectedItems/SelectedSeries properties, to get additional information on which items have been selected thus far in the control. This is a new feature, and it will be available, when you download the latest internal build from your account.
    I hope this information helps.

    Sincerely yours,
    Yavor
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top