Hi there,
I want to add a default filter to a boolean column in the grid. Could you tell me how to do it?
Thank you
regards
Jerry
I want to add a default filter to a boolean column in the grid. Could you tell me how to do it?
@(Html.Kendo()
.Grid<
Client.Website.Models.ClientModel
>()
.Name("ClientGrid")
.HtmlAttributes(new { style = "height:100%; clear:both;table-layout: fixed;" })
.Columns(columns =>
{
columns.Bound(c => c.ClientId).Hidden();
columns.Bound(c => c.Name);
columns.Bound(c => c.IsActive).Width(80).Filterable(filter=>filter.Enabled(true));
columns.Bound(c => c.Notes)})
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("GetClients", "Client"))
)
.Scrollable()
.Pageable()
.Sortable()
.Selectable()
.Filterable())
Thank you
regards
Jerry