How can I access selected items in a ListView List in Kendo?

I like the control and from a visual point of view it gives me exactly what I want (selection of several elements, etc.), but I do not see any documentation or tutorials explaining how to access the collection with the selected elements or even define which items are selected.

I thank you for helping with this basic question.

+6
source share
1 answer

You must use the select method to get a list of selected nodes.

Given the following initialization:

 var list = $("#list").kendoListView({ dataSource: data, template : "<li>${title}</li>", selectable: "multiple" }).data("kendoListView"); 

You can use:

 var selected = list.select(); console.log("selected", selected); 

Check select documentation here

+9
source

All Articles