RadListView displayed EmptyView when the ItemsSource property is null

1 Answer 328 Views
ListView
atlanta
Top achievements
Rank 1
atlanta asked on 18 Jul 2022, 10:32 AM

<telerik:RadListView  x:Name="listView" ItemsSource="{Binding Items}" />

RadListView control  add EmptyView property, For example

<CollectionView ItemsSource="{Binding EmptyMonkeys}"
                EmptyView="No items to display" />
link:Define an EmptyView for a CollectionView

1 Answer, 1 is accepted

Sort by
0
Venelin
Telerik team
answered on 18 Jul 2022, 02:47 PM | edited on 18 Jul 2022, 02:51 PM

Hi Atlanta,

I agree this will be a nice feature in the ListView control, so I have logged a public feature request on your behalf. You can cast your vote for this feature and follow the public item at this link: https://feedback.telerik.com/maui/1572932-listview-provide-the-option-to-set-custom-empty-template 

As a solution, you can place any content above the ListView in case there are no items.

Mark
Top achievements
Rank 3
Iron
Iron
Iron
commented on 16 Dec 2023, 06:26 PM

I am very surprised this is has not been added since this issue was raised.
Tags
ListView
Asked by
atlanta
Top achievements
Rank 1
Answers by
Venelin
Telerik team
Share this question
or