BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-21-2009, 04: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, 08: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  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





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