I am having trouble with the filter row example from your demos for the kendo ui grid. My code looks similar to what you guys are showing but I get an error when I run my site. The code I am using is shown below:
However, when I run this I get an error saying "Cannot convert lambda expression to type "bool" because it is not a delegate type. This happens on line
columns.Bound(p => p.Name).Filterable(ftb => ftb.Cell(cell => cell.Operator("contains")));
What am I missing?
@(Html.Kendo().Grid<
MyViewModel
>()
.Name("MyGrid")
.DataSource(dataSource => dataSource
.Ajax()
.Read(read =>
{
read.Action("GetResults", "MyController");
})
.PageSize(10)
.ServerOperation(true)
)
.Columns(columns =>
{
columns.Bound(p => p.Name).Filterable(ftb => ftb.Cell(cell => cell.Operator("contains")));
columns.Command(command => command.Custom("Report").Click("showDetails"));
})
.Filterable(ftb => ftb.Mode(GridFilterMode.Row))
.Sortable()
.Pageable()
.Selectable(s => s.Mode(GridSelectionMode.Single))
)