Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143152 | Mar 6,2019 03:50 PM UTC | Mar 7,2019 04:39 AM UTC | jQuery | 1 |
![]() |
Tags: ejGrid |
<ej-grid id="FlatGrid" allow-paging="true" datasource="ViewBag.dataSource" allow-filtering="true">
<e-filter-settings filter-type="Excel" />
<e-columns>
…………………………………………………………….
</e-columns>
</ej-grid>
<script type="text/javascript">
function onClick() { // external button click event
var Obj = $("#FlatGrid").ejGrid("instance");
Obj.model.filterSettings.filteredColumns.push({ field: "ShipCity", operator: "startswith", value: "Be", predicate: "or", matchCase: true });
Obj.model.filterSettings.filteredColumns.push({ field: "ShipCity", operator: "startswith", value: "Ts", predicate: "or", matchCase: true });
Obj.refreshContent();
}
</script> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.