Set Chart Hoverd items

5 posts, 0 answers
  1. Andrea
    Andrea avatar
    9 posts
    Member since:
    Jul 2010

    Posted 24 Nov 2011 Link to this post

    Hi, I have a Pie Chart and a GridView bound with the same data.
    I have achieved to select the Chart item when teh same item is selected in the Grid and viceversa.
    I would also be able to set the Hover item in the Chart when the Grid hovered row is changed.

    But there is not such a public  HoveredItem property in the chart.
    Anyway I can do this?
  2. Nikolay
    Admin
    Nikolay avatar
    397 posts

    Posted 29 Nov 2011 Link to this post

    Hi Andrea,

    There is no such property exposed on the chart, however, you may achieve programatically hovering certain items of the chart using the VisualStateManager in the manner demonstrated in the attached sample application.

    All the best,
    Nikolay
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. Andrea
    Andrea avatar
    9 posts
    Member since:
    Jul 2010

    Posted 29 Nov 2011 Link to this post

    thanks a lot
  4. Andrea
    Andrea avatar
    9 posts
    Member since:
    Jul 2010

    Posted 29 Nov 2011 Link to this post

    how would I achieve the opposite:
    Mouse hover an item in the chart and highlight the grid item?
  5. Petar Marchev
    Admin
    Petar Marchev avatar
    1029 posts

    Posted 02 Dec 2011 Link to this post

    Hi Andrea,

    This also needs to be done programmatically. The approach is the same as in the previously attached project - use the VisualStateManager to change the states of certain items of the grid when the chart is being hovered and certain items of the chart when the grid is being hovered.

    I am attaching a project that might help you with this.

    All the best,
    Petar Marchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top