I search a lot but I don't find a way to "disable" the click event on a legend of a chart. I don't want my user could click on the legend.
Could you please help me ?
Thank
1 Answer, 1 is accepted
0
Vessy
Telerik team
answered on 05 Jun 2015, 02:01 PM
Hi Vallin,
You can attach an event handler to the legendItemClick event and prevent the default behavior (show/hide the corresponding pie segment). You can have a similar implementation:
chart.get_kendoWidget().bind("legendItemClick", function (e) {
e.preventDefault();
});
}
</script>
I hope this approach is suitable for your scenario.
Regards,
Vessy
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items