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

Enable Filtering with Static List

1 Answer 168 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Pranay
Top achievements
Rank 1
Pranay asked on 03 Oct 2016, 07:30 PM

Is there a way to enable filtering in the list if it does not use a dataSource and just binds directly to the HTML ?

 

<ul id="listView">
    <li>Item 1</li>
    <li>Item 1</li>
    <li>Item 1</li>
</ul>

<script>

$("#listView").kendoMobileListView({

filterable: true

});

</script>

 

I do get a textbox to filter, but no matter what I type, nothing comes up!

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 05 Oct 2016, 10:59 AM
Hello Pranay,

Filtering the MobileListView is available only when the ListView is bound to a dataSource. This is because the filtering is made based on the data items in the dataSource:

http://docs.telerik.com/kendo-ui/api/javascript/mobile/ui/listview#configuration-filterable

The information will be shortly updated in the documentation.

Let me know if you need additional information on this matter.

Regards,
Stefan
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
ListView (Mobile)
Asked by
Pranay
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or