File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
code-snippet/grid/filtering/excelfilter-custom-datasource
grid/EJ2_ASP.MVC/filtering Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
@Html.EJS().Grid("excelFilter").DataSource((IEnumerable<object>)ViewBag.dataSource).PageSettings(page => page.PageSize(12)).AllowFiltering(true).AllowPaging(true).AllowSorting(true).FilterSettings(Filter => Filter.Type(Syncfusion.EJ2.Grids.FilterType.Excel)).Columns(col =>
2
- {
3
- col.Field("OrderID").HeaderText("Order ID").Width("100").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Right).Add();
4
- col.Field("CustomerID").HeaderText("Customer ID").Width("100").Add();
5
- col.Field("Freight").HeaderText("Freight").Width("100").Format("C2").Add();
6
- col.Field("OrderDate").HeaderText("Order Date").Width("100").Format("yMd").Add();
7
- }).ActionBegin("actionBegin").Render()
2
+ {
3
+ col.Field("OrderID").HeaderText("Order ID").Width("100").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Right).Add();
4
+ col.Field("CustomerID").HeaderText("Customer ID").Width("100").Add();
5
+ col.Field("Freight").HeaderText("Freight").Width("100").Format("C2").Add();
6
+ col.Field("OrderDate").HeaderText("Order Date").Width("100").Format("yMd").Add();
7
+ }).ActionBegin("actionBegin").Render()
8
8
</div>
9
9
<script>
10
10
function actionBegin(args) {
Original file line number Diff line number Diff line change 1
1
<ejs-grid id="grid" dataSource="@ViewBag.dataSource" allowPaging="true" allowFiltering="true" allowSorting="true" actionBegin="actionBegin">
2
- <e-grid-filterSettings type="Excel"></e-grid-filterSettings>
2
+ <e-grid-filterSettings type="Excel"></e-grid-filterSettings>
3
3
<e-grid-pageSettings pageSize="12"></e-grid-pageSettings>
4
4
<e-grid-columns>
5
5
<e-grid-column field="OrderID" headerText="Order ID" textAlign="Right" width="100"></e-grid-column>
Original file line number Diff line number Diff line change 1
1
---
2
2
layout : post
3
- title : Excel Like Filter in # #Platform_Name## Grid Component
4
- description : Learn here all about Excel Like Filter in Syncfusion # #Platform_Name## Grid component of Syncfusion Essential JS 2 and more.
3
+ title : Excel Like Filter in Syncfusion # #Platform_Name## Grid
4
+ description : Learn here all about Excel Like Filter in Syncfusion # #Platform_Name## Grid of Syncfusion Essential JS 2 and more.
5
5
platform : ej2-asp-core-mvc
6
6
control : Excel Like Filter
7
7
publishingplatform : # #Platform_Name##
You can’t perform that action at this time.
0 commit comments