<ejs-grid id="Grid" allowPaging="true" load="onLoad" actionBegin="begin" toolbar="@( new List<object>() {"Add","Edit","Delete","Update","Cancel"})" allowFiltering="true">
<e-grid-editsettings allowAdding="true" allowDeleting="true" allowEditing="true"></e-grid-editsettings>
<e-grid-filterSettings type="Excel"></e-grid-filterSettings>
<e-data-manager url="/Index?handler=DataSource" insertUrl="/Index?handler=Insert" updateUrl="/Index?handler=Update" removeUrl="/Index?handler=Delete" adaptor="UrlAdaptor"></e-data-manager>
<e-grid-pageSettings pageCount="5" pageSize="5"></e-grid-pageSettings>
...
</ejs-grid>
<script>
function begin(args) {
if (args.requestType === "filtering") {
args.columns[0].value = null;
}
}
...
</script> |