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[iOS] Empty groupTemplate is visible when there are no items #1205

Open PeterStaev opened 5 years ago

PeterStaev commented 5 years ago

Please take a minute to read our NativeScript Code of Conduct before proceeding with posting issues or discussing. The purpose of this guide is to make communication and cooperation within our forums a pleasure for you and the other members.

Please, provide the details below:

Tell us about the problem

When the RadListView is bound to an empty collection, there is one group template that is rendered.

Which platform(s) does your issue occur on?

iOS

Please provide the following version numbers that your issue occurs with:

Please tell us how to recreate the issue in as much detail as possible.

https://play.nativescript.org/?template=play-tsc&id=DI7YX6

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

(You can paste entire code snippets, link to playground demo or attach a runnable project)

jessorlisa commented 3 years ago

Does anybody know of any workarounds until this is fixed?

jessorlisa commented 3 years ago

I found a workaround until this is properly addressed. I set the grouping function to undefined if the list items are empty and re-add it if there are items again. Not a nice solution but it seems to work for now.

Also works as a workaround here for https://github.com/ProgressNS/nativescript-ui-feedback/issues/1216.