<ej-grid id="FlatGrid" allow-paging="true" allow-grouping="true" group-settings ="@(new GroupSettings { GroupedColumns= new List<string>() { "CustomerID" } })" >
<e-datamanager url="/Home/DataSource" insert-url="/Home/CellEditInsert" update-url="/Home/CellEditUpdate" remove-url="/Home/CellEditDelete" adaptor="UrlAdaptor" ></e-datamanager>
<e-columns>
<e-column field="OrderID" is-primary-key="true" header-text="Order ID" text-align="Right" width="70"></e-column>
<e-column field="CustomerID" header-text="Customer ID" width="80"></e-column>
</e-columns>
</ej-grid> |
Hello.
This example https://help.syncfusion.com/aspnet-core/grid/grouping?cs-save-lang=1&cs-lang=razor#initial-grouping doesn't work (There is no class GroupSettings at all). If delete initial grouping and try group manually - there are no result. Please, help.
P.S.
Also try to use this example http://aspnetcore.syncfusion.com/grid/grouping
@using Syncfusion.JavaScript.Models;
<ej-grid id="FlatGrid" allow-paging="true" datasource="ViewBag.data" allow-grouping="true" group-settings ="@(new GroupSettings { GroupedColumns= new List<string>() { "CustomerID" } })">
<e-columns>
<e-column field="ID" header-text="Order ID" is-primary-key="true" text-align="Right" width="75"> </e-column>
<e-column field="CustomerID" header-text="Customer ID" width="80"></e-column>
<e-column field="EmployeeID" header-text="Employee ID" text-align="Left" width="75"></e-column>
</e-columns>
</ej-grid> |