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

    Hello,

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

    Thanks
  2. Answer
    Petar Marchev
    Admin
    Petar Marchev avatar
    968 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:
    <telerik:RadLegend.Resources>
     <Style TargetType="telerik:LegendItemControl">
      <EventSetter Event="MouseDown" Handler="legendItem_MouseDown" />

    Regards,
    Petar Marchev
    Telerik
     

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top