ChartView Legend Item Click

2 posts, 1 answers
  1. KA
    KA avatar
    7 posts
    Member since:
    Jan 2013

    Posted 28 Jan 2015 Link to this post


    Is it possible to subscribe to a Button-Click Event on the Legend in the ChartView?

  2. Answer
    Petar Marchev
    Petar Marchev avatar
    996 posts

    Posted 02 Feb 2015 Link to this post

    Hi Kumar,

    The RadLegend is a separate control, not part of the ChartView.

    By default, the legend items in the RadLegend do not have a button inside them, so you cannot get a button click event. You can use the ItemTemplate property of the legend control so that you plug in a button or you can use an implicit style targeting a LegendItemControl and attach an event handler to the MouseDown event:
     <Style TargetType="telerik:LegendItemControl">
      <EventSetter Event="MouseDown" Handler="legendItem_MouseDown" />

    Petar Marchev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top