Hi, I have been trying to enable and disable zoom in my column htmlchart through a RadCheckBox and a Javascript function which I call in the RadCheckBox event OnClientCheckedChanged, and this is my function:
function Cambio_Chk_Zoom(args) {
var b = $find("ctl00_MainContent_ChartCantClientes");
a = $telerik.toHtmlChart(b);
if ($telerik.findCheckBox("<%=CheckBox1.ClientID %>").get_checked() == false) {
a.get_kendoWidget().options.zoomable.mousewheel = "false";
a.get_kendoWidget().options.zoomable.mousewheel.lock = "none";
}
else {
a.get_kendoWidget().options.zoomable.mousewheel = "true";
a.get_kendoWidget().options.zoomable.mousewheel.lock = "y";
}
a.repaint();
}
Initially of course I can't zoom with the mouse scroll.
I have already tested the function and it goes correctly to the if statement, i.e.: when it should enable zooming, it goes to else and it enables the wheel zoom, and when it should disable zooming it goes to the if part but it does't disable the zoom.
The other problem is that it really doesn't lock my y axis in the zoom.
I have this in my chart creation: ChartName.Zoom.Enabled = true;
I have read something about the default state of the chart but that didn't help me.
Any help will be appreciated.
Thanks in advance.