Bug in RadDataBoundListBox with PullToRefresh and Footer

5 posts, 0 answers
  1. Michael
    Michael avatar
    13 posts
    Member since:
    Apr 2013

    Posted 19 Nov 2014 Link to this post

    I have found a bug in the RadDataBoundListBox related to pull to refresh functionality.  It occurs in the following scenario:

    1. The list is bound to a empty collection
    2. The list has a footer configured, but all controls in the footer are set to collaped

    In this scenario, if you do a pull to refresh, the whole list will be
    blank and you will not see anything until you do another pull to refresh
    that contains items.

    I am including a sample:
    - To repro, press the clear items button then perform a pull to refresh.  At this point the view will be blank
    - Press the Repopulate Items button to add the items back.  You will notice the list box is still blank
    - Then do another Pull to refresh and the data will show once again.

    I did come up with a workaround, where I just add an empty textblock to the footer
  2. Michael
    Michael avatar
    13 posts
    Member since:
    Apr 2013

    Posted 19 Nov 2014 in reply to Michael Link to this post

    Adding the sample and appending .jpeg to name so that I can post....
  3. DevCraft banner
  4. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 24 Nov 2014 Link to this post

    Hello Michael,

    Thank you for the information and the attached project.

    I am afraid that I can not completely understand what is the scenario you wish to accomplish. If you wish to enable the PullToRefreshIndicator even when no data is displayed, you can set the ShowPullToRefreshWhenNoData property to true. If you wish the footer to be displayed only when there are items in the ItemsSource, then you can set the ListFooterTemplate to null when the footer should not be visible. I have attached a modified version of your project to demonstrate how you can do this.

    Also, please note that in your project the Page class should implement the INotifyPropertyChanged interface and raise the PropertyChanged event for the properties that update the controls (e.g. FooterVisibility property).

    If this does not fulfill your requirements, could you please provide more detailed description of the scenario and we will suggest the best way to implement it.

    I look forward to your reply. 

    Regards,
    Rosy Topchiyska
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. Michael
    Michael avatar
    13 posts
    Member since:
    Apr 2013

    Posted 24 Nov 2014 in reply to Rosy Topchiyska Link to this post

    Rosy,

    Yes, in my real application I am using the INotifyPropertyChanged interface to let the View know about the changes (I just didn't implement it for the test app...).

    The main thing I want to do with the footer is to have it show up at certain scenarios (I.E. button to show that there is more data available to load, and a busy indicator showing that we are loading data).  There will be some instances where the footer is displayed while there is no data available. 

    I just found a bug where if you have a footer configured, but are currently hiding all controls in the footer, the list is currently empty, and then you do a pull to refresh, then the contents of the list box will not be visible again until you do another pull to refresh when items are in the list.
  6. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 27 Nov 2014 Link to this post

    Hello Michael,

    Thank you for the valuable feedback. Our developers will look into this problem. Until then you could use the workaround that you have found, or just set the ListFooterTemplate to null when its content should be collapsed.

    I have updated your Telerik points as a token of gratitude for bringing this issue to our attention. Please, let us know if you have any other questions.

    Regards,
    Rosy Topchiyska
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
DevCraft banner