PullToRefresh not availble when there is an EmptyContentTemplate

6 posts, 0 answers
  1. Carlos
    Carlos avatar
    14 posts
    Member since:
    Feb 2012

    Posted 20 Aug 2013 Link to this post

    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>

     

     

     

     

     

     

  2. Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 20 Aug 2013 Link to this post

    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.
  3. DevCraft banner
  4. Carlos
    Carlos avatar
    14 posts
    Member since:
    Feb 2012

    Posted 23 Aug 2013 Link to this post

    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!



  5. Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 26 Aug 2013 Link to this post

    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.
  6. Oleg
    Oleg avatar
    10 posts
    Member since:
    Aug 2012

    Posted 20 Dec 2013 Link to this post

    Hi, 
    in latest version i also have this problem.
    Do you have any specific plans to fix it?
    Thank you
  7. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 26 Dec 2013 Link to this post

    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.
Back to Top
DevCraft banner