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

Dynamic Chart Interaction w/ Multiple Items

1 Answer 40 Views
Chart
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 19 Aug 2010, 08:41 PM
Honestly, I don't know which sub-forum this belongs in... but the page contains a chart.  The chart can show anywhere from zero to many data sets.  These datasets are defined by a custom business object and are represented as a List<DailyInfo> contained within a List<AllInfoForOneEntity>... this is all very well and good and works just fine.

What I am actually looking to do is to have a seperate 'data set selection' control that will contain a check box, label and color (as an image)... if the checkbox for the record is checked, the dataset is shown... and vice versa.

Now the issue is what control to use for the selection list - i have tried the gridview but there is no way to fire an event when a checkbox in a gridviewcheckboxcolumn is checked or unchecked.

Any help with this would be appreciated.

John

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 24 Aug 2010, 01:48 PM
Hello John,

One way to achieve this is to have a RadGridView and RadChart bound to the same collection of objects. Then bind the Visibility property of the RadChart series to the boolean property of your business object. Converting boolean values to visibility values can be achieved through a converter set in the binding. RadGridView has a GridViewCheckBoxColumn that represents boolean values as a checkbox. Checking the checkbox in the RadGridView will change the visibility of the corresponding series in the RadChart.

Best wishes,
Yavor Ivanov
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
John
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or