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

Unable to add search box in kendo grid checkbox filter

1 Answer 122 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rohit
Top achievements
Rank 1
Rohit asked on 21 May 2016, 06:41 AM

Hi , 

      I am trying to replicate  the example in following demo:

    https://demos.telerik.com/aspnet-mvc/grid/filter-multi-checkboxes

    I need to include search box in checkbox filtering ,like one already done on Product Name column in the demo above. However i am unable to add .Search(true) to Filterable method in kendo grid . I am getting error as search is not a member of commandbuilder.

 Can you please suggest me what am i missing. As it is very urgent. Help would be appreciated. Following is my complete view.

@modeltype List(Of Display_Data.ServiceReference1.Empolyee)
@imports Display_Data.Empolyee
@imports Kendo.Mvc.UI

<link href="~/Content/kendo/2016.1.412/kendo.default.min.css" rel="stylesheet" />
<link href="~/Content/kendo/2016.1.412/kendo.common.min.css" rel="stylesheet" />

<script src="//kendo.cdn.telerik.com/2016.2.504/js/jquery.min.js"></script>
<script src="//kendo.cdn.telerik.com/2016.2.504/js/kendo.all.min.js"></script>
@code
    Html.Kendo().Grid(Of Display_Data.Empolyee)() _
        .Name("grid") _
         .Pageable() _
         .Editable(Function(m) m.Mode(GridEditMode.PopUp)) _
 .Filterable() _
 .Sortable() _
     .Columns(Sub(c)
                      c.Bound(Function(p) p.Name)
                      c.Bound(Function(p) p.Age)
                      c.Bound(Function(p) p.City).Filterable(Function(f) f.Multi(True).Search(True))
                      c.Bound(Function(p) p.Expertise)
                    
              End Sub) _
     .DataSource(Sub(d)
                         d.Ajax() _
                         .Create(Function(read) read.Action("UpdateData", "Student")) _
                     .Update(Function(read) read.Action("UpdateData", "Student")) _
                     .Read(Function(read) read.Action("Display", "Student")).Model(Sub(m)
                                                                                           m.Id(Function(i) i.Expertise)
                                                                                   End Sub).ServerOperation(False)

                 End Sub) _
.Render()
End code



 

1 Answer, 1 is accepted

Sort by
0
Rohit
Top achievements
Rank 1
answered on 21 May 2016, 06:58 AM
please review my code and suggest what am i doing wrong
Tags
Editor
Asked by
Rohit
Top achievements
Rank 1
Answers by
Rohit
Top achievements
Rank 1
Share this question
or