I have a simple grid and want to have a dropdown filter for the column Project. I do not want to make a separate call to get data for this dropdown. Can I use the unique values from the grid to populate the filter?
@(Html.Kendo().Grid(Model)
.Name("ByProjectAndReviewerGrid")
.Deferred(true)
.ToolBar(tools => tools.Excel())
.Excel(excel => excel
.FileName("ByProjectAndReviewer.xlsx")
.AllPages(true)
)
//.Events(events => events.DataBound("databound"))
.Columns(columns =>
{
columns.Bound(p => p.Project).Title("Project").Width(400);
columns.Bound(p => p.Reviewer).Title("Reviewer").Width(300);
columns.Bound(p => p.ReleasePercent).Title("Release %").Filterable(false).Width(150);
columns.Bound(p => p.DoNotReleasePercent).Title("Do Not Release %").Filterable(false).Width(150);
columns.Bound(p => p.RejectPercent).Title("Reject %").Filterable(false).Width(150);
columns.Bound(p => p.Release).Title("Release").Filterable(false).Width(150);
columns.Bound(p => p.DoNotRelease).Title("Do Not Release").Filterable(false).Width(150);
columns.Bound(p => p.Reject).Title("Reject").Filterable(false).Width(150);
columns.Bound(p => p.TotalReviewed).Title("Total Reviewed").Filterable(false).Width(150);
})
.HtmlAttributes(new { style = "height: 650px;" })
.NoRecords()
.AutoBind(false)
.Sortable()
.Filterable()
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
.Read(read => read.Action("ByProjectAndReviewer_Read", "Reporting"))
)
)