pasluc74669 pasluc74669 - 5 months ago 23x
Javascript Question

how do I make selectable or not selectable a kendo grid by a button

I have a grid, with the selection mode enabled, in the grid definition

selectable: true

I need to make the grid not selectable, by a button. I tried this, but it isn't working:

$("#disableKendoGrid").click(function () {
var grid = $("#myGrid").data("kendoGrid");
grid.options.selectable = false;


Just toggleClass what make table selectable :