Skip to content

Commit b1a86c9

Browse files
committed
aligned the code
1 parent 9d2a122 commit b1a86c9

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

ej2-asp-core-mvc/code-snippet/grid/filtering/excelfilter-custom-datasource/razor

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
@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()
88
</div>
99
<script>
1010
function actionBegin(args) {

ej2-asp-core-mvc/code-snippet/grid/filtering/excelfilter-custom-datasource/tagHelper

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<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>
33
<e-grid-pageSettings pageSize="12"></e-grid-pageSettings>
44
<e-grid-columns>
55
<e-grid-column field="OrderID" headerText="Order ID" textAlign="Right" width="100"></e-grid-column>

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/filtering/excel-like-filter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
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.
55
platform: ej2-asp-core-mvc
66
control: Excel Like Filter
77
publishingplatform: ##Platform_Name##

0 commit comments

Comments
 (0)