Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
I would like to disable ability to click on chart legend items.
Any ideas?
Thank you
Hello David,
You can attach the legendItemClick event and prevent the default behavior (show/hide the corresponding pie segment):
<telerik:RadHtmlChart runat="server" ID="RadChart1" Width="500px"> <PlotArea> <Series> <telerik:PieSeries> <SeriesItems> <telerik:PieSeriesItem Y="20" Name="name 1" /> <telerik:PieSeriesItem Y="30" Name="name 2" /> <telerik:PieSeriesItem Y="50" Name="name 3" /> <telerik:PieSeriesItem Y="40" Name="name 4" /> </SeriesItems> </telerik:PieSeries> </Series> </PlotArea> <ClientEvents OnLegendItemClick="onLegendItemClick"/> </telerik:RadHtmlChart>
function onLegendItemClick(e) { e.preventDefault(); }
Regards, Vasko Progress Telerik
Works!