Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145877 | Jul 11,2019 06:39 PM UTC | Jul 16,2019 04:06 AM UTC | jQuery | 5 |
![]() |
Tags: ejGrid |
<button id="btn" onclick="Filter()">
Click here to filter
</button>
…………………..
<div id="Grid"></div>
<script type="text/javascript">
$(function () {
………………………
$("#Grid").ejGrid({
………………………………..
allowFiltering: true,
filterSettings: { filterType: "excel" },
columns: [
……………………………………………..
]
});
});
function Filter() {
var gridObj = $("#Grid").ejGrid("instance"); // create the grid instance using grid ID.
gridObj.filterColumn([
{ field: "CustomerID", operator: "contains", value: 'o', predicate: "and", matchcase: false },
{ field: "CustomerID", operator: "contains", value: 'u', predicate: "and", matchcase: false },
])
}
…………………………..
</script>
</body>
</html> |
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.