This is a migrated thread and some comments may be shown as answers.

demo code for custom filter doesn't appear to work

1 Answer 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Myles
Top achievements
Rank 1
Myles asked on 01 Feb 2013, 03:21 PM
http://demos.kendoui.com/web/grid/filter-menu-customization.html

In your grid demo for filter menu customisation you define grid columns as follows:

@(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.EmployeeViewModel>()    
    .Name("Grid")
    .Columns(columns => {
        columns.Template(@<text>@item.FirstName  @item.LastName</text>)
                .ClientTemplate("#=FirstName# #=LastName#")
                .Title("Name");
        columns.Bound(e => e.City)
                .Filterable(filterable => filterable.UI("cityFilter"))
                .Width(200);

However, the Filterable method on a column only accepts a bool as an input value.
The code in this demo is not possible.

1 Answer, 1 is accepted

Sort by
0
Myles
Top achievements
Rank 1
answered on 01 Feb 2013, 03:56 PM
Ignore this...we didn't have the latest version installed.
Tags
Grid
Asked by
Myles
Top achievements
Rank 1
Answers by
Myles
Top achievements
Rank 1
Share this question
or