OnDemandAutomatic and empty result

3 posts, 1 answers
  1. Ralf
    Ralf avatar
    23 posts
    Member since:
    Oct 2012

    Posted 15 Mar 2012 Link to this post

    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. Answer
    Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 15 Mar 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Ralf
    Ralf avatar
    23 posts
    Member since:
    Oct 2012

    Posted 15 Mar 2012 Link to this post

    Thanks for the quick reply and works perfectly.Great support :)
Back to Top