asp.net mvc - Kendo grid prevent server side filtering? -


i have simple kendo-grid configuration below (mvc project)

  @(html.kendo().grid<reviewmodel>()       .name("grid")       .datasource(datasource => datasource           .custom()           .pagesize(20)           .schema(schema => schema.model(m => m.id(p => p.id)))           .transport(transport =>           {               transport.read("readdata");           })        )   .columns(columns =>   {       columns.bound(m => m.id).visible(false);       columns.bound(m => m.code).width(110).filterable(ftb => ftb.cell(cell =>       {           cell.operator("contains");           cell.showoperators(false);       }));       columns.bound(m => m.name).filterable(ftb => ftb.cell(cell =>       {           cell.operator("contains");           cell.showoperators(false);       }));})   .filterable(ftb => ftb.mode(gridfiltermode.row))   .pageable(p => p.enabled(true).info(false).input(true).numeric(false))) 

also little ajax call loading data

function readdata(options) {     var option = {         url: '/read',         datatype: 'json',         data: {              id: '44',             type: '5'          }     };      $.ajax(option).success(function (data) {         options.success(data);     }).error(function (e) {         console.debug(e);         options.error(e);     });   } 

as result work perfectly. grid loaded on page(mvc partial), , data server(mvc action) , show well.

but first time (in each column) if user change filter of column grid call read again, , ajax call occurred. want prevent call server filtering or other things? possible?


Comments

Popular posts from this blog

Combining PHP Registration and Login into one class with multiple functions in one PHP file -

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -