@(Html.EJ().Grid<object>("FlatGrid")
.Datasource((IEnumerable<object>)ViewBag.datasource)
.Columns(col =>
{
………………………..
})
.ChildGrid(child =>
{
child.Datasource((IEnumerable<object>)ViewBag.datasource2) // Binding data source for child Grid without using Data Service
.QueryString("EmployeeID")
.AllowPaging()
.Columns(col =>
{
…………………………………..
});
})
)
|
.Datasource((IEnumerable<object>)ViewBag.datasource)
------------------
.ChildGrid(child =>
{
child.Datasource((IEnumerable<object>)ViewBag.datasource2)
------------------------
})
.ChildGrid(d =>
{
d.Datasource((IEnumerable<object>)ViewBag.datasource2)
.QueryString("CustomerID")
.Columns(col =>
{
---------------------
});
});
})
) |