I'm having a problem with my grid. The paging is not working when the datasource options are used.
My code is as follows:
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(c => c.status).Title("Status")
}
)
.Pageable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(30)
.Filter(filters =>
{
filters.Add(status => status.requirementstatus).Contains("2");
}
)
)
)
If I remove dtaousrce completely all the results are returned and the grid pages perfectly. What am I doing wrong?