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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -