Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 660
Registered: ‎10-08-2009
My Device: Bold 9900
My Carrier: Telus
Accepted Solution

ListView scroll to end doesn't work

Hi, upon creation completed of the page, I add items to listview and scrolltoposition(end, smooth) but it doesn't work. How do I make it auto scroll to bottom upon entering the page?

Twitter: @gyubok
Posts: 543
Registered: ‎08-31-2013
My Device: Q10, Z10LE, Nokia N950, DAB....
My Carrier: Telekom Slovakia

Re: ListView scroll to end doesn't work

[ Edited ]

Your items must be fully loaded and also ListView must have set preferredHeight or must be filled vertically or horizontally according its layout direction after this scrollToItem will works

If helped give a like. If your problem was solved mark the post as "Solution"
Portfolio: BlackBerry Nokia
Social: Twitter | Facebook
About Me / Blog DevPDA | Blog
New Developer
Posts: 14
Registered: ‎12-30-2014
My Device: Z10, Q10, Passport
My Carrier: O2 de

Re: ListView scroll to end doesn't work

It's almost a year old but it was the first match at google for my problem.

I solved it by changing the orientation of my ListView layout and the sort order of my model.


ListView {
    layout: StackListLayout {
        orientation: LayoutOrientation.BottomToTop