This is a migrated thread and some comments may be shown as answers.

OnDemandAutomatic and empty result

2 Answers 52 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ralf
Top achievements
Rank 1
Ralf asked on 15 Mar 2012, 11:37 AM
Hi,

I'm using the RadDataBoundListBox and uses the OnDemandAutomatic mode to download the next x items. This works great and the display of the loading indicator via the ItemLoadingTemplate is really nice.
BUT: If the returned data collection is empty how can I hide the loading indicator? Because nothing gets added to the items source (an ObservableCollection) the indicator is always shown and I didn't find a way to hide it.

I hope someone has an idea how to this.

Thanks,
Ralf

2 Answers, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 15 Mar 2012, 11:39 AM
Hello Ralf,

You can simply set the DataVirtualizationMode property to DataVirtualizationMode.None.

All the best,
Deyan
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Ralf
Top achievements
Rank 1
answered on 15 Mar 2012, 01:05 PM
Thanks for the quick reply and works perfectly.Great support :)
Tags
DataBoundListBox
Asked by
Ralf
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Ralf
Top achievements
Rank 1
Share this question
or