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

Dynamically loading TileViewItems - Scrollposition always jumps to the top

2 Answers 16 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Andre
Top achievements
Rank 1
Andre asked on 19 Oct 2012, 07:10 PM
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 Answers, 1 is accepted

Sort by
0
Andre
Top achievements
Rank 1
answered on 19 Oct 2012, 07:32 PM
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.
0
Zarko
Telerik team
answered on 24 Oct 2012, 01:44 PM
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.

Tags
TileView
Asked by
Andre
Top achievements
Rank 1
Answers by
Andre
Top achievements
Rank 1
Zarko
Telerik team
Share this question
or