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
Post a Comment