javascript - how do I make selectable or not selectable a kendo grid by a button -
i have grid, selection mode enabled, in grid definition
selectable: true
i need make grid not selectable, button. tried this, isn't working:
$("#disablekendogrid").click(function () { var grid = $("#mygrid").data("kendogrid"); grid.options.selectable = false; grid.refresh(); });
http://jsfiddle.net/sbb5z/585/
just toggleclass make table selectable :
$('#bouton').on('click',function(){ $('table').toggleclass('k-selectable'); });
Comments
Post a Comment