Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Agent and App Development Solutions
Build. Accelerate. Govern.
AI-Ready Application Experiences
AI-Assisted SDLC
Agent Governance and Control
Telerik
Build modern .NET business apps
.Net Web
Desktop
Reporting and Documents
Cross-Platform
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
CMS
Debugging
UI Tools
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!