Welcome!

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

Java Development

Reply
Highlighted
Visitor
Posts: 1
Registered: ‎06-22-2012
My Device: Simulator
My Carrier: None

Stop ListField from reloading

[ Edited ]

Hello,

 

Lets say you create a ListField with size 10. Now when you scroll to the bottom element you want to add 10 more items. But as soon as you change the ListField's size the whole list reloads and you end up on top with selectedindex 0. Is it possible to just increase the size while keeping the position (current state) of the ListField?

 

If you save the selectedindex and later set it back to the saved value the list will scroll all the way down. This is not really an alternative.

 

 

*SOLVED* You just use the insert function instead. Then the ListField wont reload.

 

/illion