Dynamically loading TileViewItems - Scrollposition always jumps to the top

3 posts, 0 answers
  1. Andre
    Andre avatar
    2 posts
    Member since:
    Oct 2012

    Posted 19 Oct 2012 Link to this post

    Hello,

    every Item in my TileView is showing a picture and some text. I am using virtualized mode, and the load-procedure of the image starts when the item comes in view.

    That works fine if I use the normal or large-Content mode. 

    The problem occurs when I am in maximized mode, so that I see the large content and on the right side all the minimized Items showing the small content. The small content is loading the picture dynamically too when it comes into view when the user is scrolling. 
    But when the picutre in the small content-area is loaded, the scroll position always jumps back to the first element in the Minimized-Area.

    How can i force to keep this position? The problem does not occur in the Restored State, just in the minimized-area.

    Thanks

    André
  2. Andre
    Andre avatar
    2 posts
    Member since:
    Oct 2012

    Posted 19 Oct 2012 Link to this post

    It seems to me, that the scrolling just works correct in minimized area when all Items are loaded completely. 
    I start scrolling until I reach a section where something needs to be loaded, I see that it is finishing, and then the scroll position jumps to to the most top position. Then i scroll down again until I reach "new" items and so on. 

    When all items loaded, I can scroll as I want.

    My dynamic loading just fetches data with a webservice and then sets a dependency property of my Item-View-Model. Does it scrambles the scrolling when items in the collection are modified? Strange that this doesn't occur in restore-mode. Everything fine there.
  3. DevCraft banner
  4. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 24 Oct 2012 Link to this post

    Hello Andre,
    Unfortunately I wasn't able to reproduce your problem so could you please send us a sample project or at least some code snippets on how exactly do you load your images and how you've defined your tileView.
    We're looking forward to hearing from you.

    Kind regards,
    Zarko
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top