BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-21-2009, 05:30 AM   #1 (permalink)
New Member
 
Join Date: Nov 2009
Model: 8310
PIN: N/A
Carrier: zain
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to scroll the ListField to the selected index

Please Login to Remove!

Hi,
I have a simple question but unfortunately I couldn't do it until now.

I change the selected index of the ListField before show it by using ListField.setSelectedIndex( index );

the index refer to invisible row, my problem is the list doesn't scroll to show this invisible row it keeps drawing the list from row 0 as normal.
Offline  
Old 01-06-2010, 09:44 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Mar 2007
Location: India
Model: 8100
Carrier: Airtel
Posts: 64
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

try by using invalidate() and updateDisplay().

or just delete the list from screen and again initilise , set selected index and insert to same position at which is was.
__________________
Crazy for BlackBerry
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.