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

how to filter the items

2 Answers 493 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Michal Revivo
Top achievements
Rank 1
Michal Revivo asked on 12 Apr 2013, 03:34 PM
Hi
Could you explain how to refresh and filter the listView according to a specific category in the web sushi sample ?

var items = new kendo.data.DataSource({
    schema: { model: {} },
    transport: { read: { url: window.sushiMenuPath, dataType: "json" } }
});

thanks

2 Answers, 1 is accepted

Sort by
0
@CC
Top achievements
Rank 1
answered on 24 Jan 2014, 11:52 PM
Did you figure this out?
0
Alexander Valchev
Telerik team
answered on 28 Jan 2014, 09:11 AM
Hello guys,

You can filter the ListView data through using the filter method of the DataSource:

If the filtering should happen on the server, then the serverFiltering configuration option should be set to true.
In this case the dataSource will send filter parameters to the server and will expect to receive the filtered data as a response to the Ajax request. In case you need to modify or change the format of the filter parameters you can use the parameterMap function.

Regards,
Alexander Valchev
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
Michal Revivo
Top achievements
Rank 1
Answers by
@CC
Top achievements
Rank 1
Alexander Valchev
Telerik team
Share this question
or