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

PullToRefresh not availble when there is an EmptyContentTemplate

5 Answers 37 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.
Carlos
Top achievements
Rank 1
Carlos asked on 20 Aug 2013, 10:28 AM

I have this RadJumplist. Pull to refresh works when there are items in the list.

Pull to refresh is not available when the itemssource is empty. If I remove my EmptyContentTemplate the PullToRefresh works perfectly.

What am I missing ?

 

<telerikDataControls:RadJumpList Grid.Row="0"

x:Name="ctrlListPlaylistInfo"

ItemTemplate="{StaticResource EpisodeListItemTemplate}"

ListHeaderTemplate="{StaticResource PlaylistListHeaderTemplate}"

ItemTemplateSelector="{StaticResource episodeListTemplateSelector}"

ItemRemovedAnimationInterval="0:0:0.5"

ItemAddedAnimationInterval="0:0:0.5"

IsAsyncBalanceEnabled="True"

EmptyContentDisplayMode="DataSourceEmpty"

EmptyContent="{Binding}"

EmptyContentTemplate="{StaticResource NewPlaylistsEmptyTemplate}">

   <telerikDataControls:RadJumpList.VirtualizationStrategyDefinition>

      <telerikPrimitives:StackVirtualizationStrategyDefinition Orientation="Vertical"/>

    </telerikDataControls:RadJumpList.VirtualizationStrategyDefinition>

</telerikDataControls:RadJumpList>

 

 

 

 

 

 

5 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 20 Aug 2013, 10:42 AM
Hello Carlos,

Thanks for writing and for your question.

In general, the Pull-to-Refresh feature is designed to work when there are already items loaded in the DataBoundListBox. The idea behind this mechanism is that you refresh an existing data set by pulling the scrollable items and releasing them.

Since there are already a couple of requests to support Pull-to-Refresh when there is no data in the control, we may consider enabling this.

For the time being, my suggestion is to always load a given amount of items initially and make sure the users are able to request refresh by using the PTR feature after that.

Thanks!

Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Carlos
Top achievements
Rank 1
answered on 23 Aug 2013, 12:50 PM
Honestly every little issue like this gets me more dissaponting in the Telerik controls.  

Does it really makes sense not to support it when the list is empty ?  Imagine the most common scenario where you have items to view, then the user removes viewed items from the list. The UI experience to reload the collection the same way, pull to refresh, whether emty or not!



0
Deyan
Telerik team
answered on 26 Aug 2013, 08:31 AM
Hello Carlos,

Thanks for writing.

As already mentioned, we will put this feature request on our TODO list for the near future. For the time being, a possible workaround would be to put a dummy item in your source and use a template selector to define its appearance to let your users pull and refresh the data event when there are no items in the source.

Please, excuse us for the caused inconvenience.

Let me know in case you have further questions or need assistance.

Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Oleg
Top achievements
Rank 1
answered on 20 Dec 2013, 09:53 AM
Hi, 
in latest version i also have this problem.
Do you have any specific plans to fix it?
Thank you
0
Valentin.Stoychev
Telerik team
answered on 26 Dec 2013, 08:50 AM
Hi,

there is a SP2 coming at the end of January and we will do our best to include this issue in the fixes.

Regards,
Valentin.Stoychev
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
DataBoundListBox
Asked by
Carlos
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Carlos
Top achievements
Rank 1
Oleg
Top achievements
Rank 1
Valentin.Stoychev
Telerik team
Share this question
or