Dynamic Chart Interaction w/ Multiple Items

2 posts, 0 answers
  1. John
    John avatar
    3 posts
    Member since:
    Aug 2010

    Posted 19 Aug 2010 Link to this post

    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
  2. Yavor
    Admin
    Yavor avatar
    401 posts

    Posted 24 Aug 2010 Link to this post

    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
Back to Top