I have a kendo ui grid. In my page I two button that when user click button1, I want to disable paging and disable server sorting on grid and when user click button2, I want to enable paging and server sorting.
I disable paging by this code:
$('#grid').data('kendoGrid').dataSource.pageSize(0);
and enable paging by this code:
$('#grid').data('kendoGrid').dataSource.pageSize(10);
Also I want to disable server sorting by this code:
$('#grid').data('kendoGrid').dataSource.options.serverSorting = flase;
But it does not worked. How to I do that? Thanks.