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

How can I do the listview filtering like MobileListView?

1 Answer 52 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Phillip
Top achievements
Rank 1
Phillip asked on 16 May 2015, 06:13 PM

I have the following:

<div class="demo-section" >
    @(Html.Kendo().ListView(Model)
    .Name("listView")
    .TagName("div")
    .ClientTemplateId("template")
    .Pageable()
    .Selectable(selectable => selectable.Mode(ListViewSelectionMode.Single))
    .Events(events => events.Change("onChange").DataBound("onDataBound"))
    )
</div>

and I need a way to do the filtering on the client side just like the filtering in MobileListView. How can I do that?

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 19 May 2015, 03:59 PM
Hello,

the listview does not support filtering out of the box. However, you may put an input element, bind to its change event, and apply filter to the ListView datasource instance. Something similar happens in this example.

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
ListView
Asked by
Phillip
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or