Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146522 | Aug 7,2019 05:50 AM UTC | Aug 8,2019 09:36 AM UTC | ASP.NET Core - EJ 2 | 1 |
![]() |
Tags: DataGrid |
Index.cshtml
<ejs-dropdownlist id="filterDropDown" dataSource="@ViewBag.DataSource" placeholder="Select a Value to Filter" width="300" change="dropDownchange" popupHeight="220px">
<e-dropdownlist-fields text="OrderID" value="OrderID"></e-dropdownlist-fields>
</ejs-dropdownlist>
<ejs-grid id="Grids" dataSource="ViewBag.DataSource" allowPaging="true" allowFiltering="true">
. . . . .
</ejs-grid>
<script>
function dropDownchange(args) {
var grid = document.getElementById('Grids').ej2_instances[0];
grid.filterByColumn('OrderID', 'equal', args.value);
}
</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.