This is a migrated thread and some comments may be shown as answers.

Disable hide/show click of plot bands

1 Answer 104 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 02 Feb 2015, 08:58 PM
Hi, I've been asked to disable the plot band feature which allows you click in the legend to hide/show a given bar.  Is this possible?

1 Answer, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 04 Feb 2015, 09:08 AM
Hi Bob,

For this requirement you should prevent the legendItemClick event: 
$("#chart").kendoChart({
   //....
   legendItemClick: function(e) {
       e.preventDefault();
   }
});

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Charts
Asked by
Bob
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or