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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -