RadListView: Get the right selected item after Filtering/Sorting/Grouping


#1

Hi there, I am having problem trying to get the right selected item after filtering/grouping/sorting the elements. I need to get the right element and seems I cant find it. Here is a working example in the Playground so you can see whats going on.

Thanks!


#2

With multiple selection, you don’t really care about the selected ITEM, but rather the selected ITEMS, right? If that’s correct, then look at the example in the docs which uses the getSelectedItems function: http://docs.telerik.com/devtools/nativescript-ui/Controls/Angular/ListView/selection


#3

Hi @Eddy, in some cases YES, but I need to be able to get the correct Group/Item using the args.groupIndex and args.index, somehow I need to get the final array which the RadListView is being populated with.
Also, I am changing the background of the selected items, and I need to be able to get the right item to set item.selected = true/false;

Thanks!