Hi!
Im using a viewmodel that has an enumeration named "status".
The Grid auto-generates a filter from the enum, which is cool. But I'd like to do 2 things in the grid:
1: Change the enum text
2: Hide some enum options.
I attached a print of the filter with all enum options.
This is my grid:
Thanks.
Im using a viewmodel that has an enumeration named "status".
The Grid auto-generates a filter from the enum, which is cool. But I'd like to do 2 things in the grid:
1: Change the enum text
2: Hide some enum options.
I attached a print of the filter with all enum options.
This is my grid:
@(Html.Kendo().Grid<MyViewModel>() .Name("grid" + gridName) .ToolBar(comands => comands.Template(templateHeader)) .Columns(columns => { columns.Bound(c => c.name).Title("Name"); columns.Bound(c => c.status).Title("Status"); } .Scrollable() .Sortable() .Filterable() .ColumnMenu(c => c.Messages(m => m.SortAscending("Ordem Ascendente").SortDescending("Ordem Descendente").Columns("Colunas"))) //.Pageable(pageable => pageable.Input(true).Numeric(false)) .Resizable(resizable => resizable.Columns(true)) .DataSource(dataSource => dataSource.Ajax().Read(read => read.Action(action, controller).Data("filtroAdicionalCargasPendentes"))))Thanks.