ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

[RadListView] Using FilteringFunction, it's not possible to know the filtered items length #1341

Open jscti opened 4 years ago

jscti commented 4 years ago

Nothing much to say..

I have a SearchBar + RadListView + filteringFunction

When I Type on the searchBar it filters the RadListView items, but now I want to show a "list empty" label when the filters outputs no items.. But I can't as the API doesn't seem to provide me this information..

NickIliev commented 4 years ago

@jscti you can add your own logic that extracts the filtered array length - I see no issues with that.

jscti commented 4 years ago

@NickIliev

What are you talking about ?

I am using the Radlistview API with 2 inputs of its own API :

Now, like that, there is no possibility to know the filteredList length that is internaly processed by RadListView ... => So feature request : RadListView api has a public items variable, and I just think it should also have a filteredItems public variable.

And yeah I could have my own filtering logic but what's the point when RadListView already try to do it .. and cover my needs at 99% ? (and I think the last 1% of this issue is pretty common need, not something exotic)

Thanks

jscti commented 4 years ago

@NickIliev Any thougts on this? Will you reopen ? TLDR: there is no way to know how many items are actually shown on listView after filtering using radlistview filtering api ..