Do we have any navigation property for Kendo grid Datasource?
Eg:
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(p => p.ProductID).Groupable(false);
columns.Bound(p => p.ProductName);
columns.Bound(p => p.UnitPrice);
columns.Bound(p => p.UnitsInStock);
})
.Groupable()
.Pageable()
.Sortable()
.Scrollable()
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Data", "API"))
)
)
From the API service, we are getting the actual data enclosed in some other object.
Our entity structure is like
Data [Class]
I want to set grid's data source as the Employees(property) .
Please help.
Eg:
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(p => p.ProductID).Groupable(false);
columns.Bound(p => p.ProductName);
columns.Bound(p => p.UnitPrice);
columns.Bound(p => p.UnitsInStock);
})
.Groupable()
.Pageable()
.Sortable()
.Scrollable()
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Data", "API"))
)
)
From the API service, we are getting the actual data enclosed in some other object.
Our entity structure is like
Data [Class]
- Error Message [Property]
- Employees[Property]
- Status [Property]
I want to set grid's data source as the Employees(property) .
Please help.