@using Syncfusion.JavaScript.Models;
<ej-grid id="Grid" datasource=ViewBag.parent allow-paging="true" show-stacked-header="true"
child-grid="@(new GridProperties() {
QueryString = "EmployeeID",
ShowStackedHeader=true,
StackedHeaderRows = new List<StackedHeaderRow>() {
new StackedHeaderRow() {
StackedHeaderColumn = new List<StackedHeaderColumn>() {
new StackedHeaderColumn() {
Column= new List<string>() { "EmployeeID", "CustomerID", "ID" },
HeaderText = "Employee Details"
} } }
},
. ..
. .
})"
>
<e-stacked-header-rows>
<e-stacked-header-row>
<e-stacked-header-columns>
<e-stacked-header-column column='@new List<string>() { "EmployeeID","FirstName","LastName" }' header-text="Employee Details" />
<e-stacked-header-column column='@new List<string>() { "Country" }' header-text="Employee Address"/>
</e-stacked-header-columns>
</e-stacked-header-row>
</e-stacked-header-rows>
. . .
. . .
</ej-grid> |
Thank you :)