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

Bug in RadDataBoundListBox with PullToRefresh and Footer

4 Answers 50 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.
Michael
Top achievements
Rank 1
Michael asked on 19 Nov 2014, 04:03 PM
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

4 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 19 Nov 2014, 04:04 PM
Adding the sample and appending .jpeg to name so that I can post....
0
Rosy Topchiyska
Telerik team
answered on 24 Nov 2014, 02:41 PM
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.

 
0
Michael
Top achievements
Rank 1
answered on 24 Nov 2014, 02:51 PM
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.
0
Rosy Topchiyska
Telerik team
answered on 27 Nov 2014, 01:59 PM
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.

 
Tags
DataBoundListBox
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Rosy Topchiyska
Telerik team
Share this question
or