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

Getting selected Data Points when multiple are selected

3 Answers 74 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 14 Oct 2010, 05:37 AM
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.

3 Answers, 1 is accepted

Sort by
0
Accepted
Yavor
Telerik team
answered on 19 Oct 2010, 09:00 AM
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
0
Rob
Top achievements
Rank 1
answered on 27 Oct 2010, 04:20 AM
Thanks for the workaround - I was worried that I was missing an obvious point to retrieve this data.

Cheers!
0
Yavor
Telerik team
answered on 27 Oct 2010, 07:44 AM
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
Tags
Chart
Asked by
Rob
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Rob
Top achievements
Rank 1
Share this question
or