10-04-2011 07:10 AM
I have a bug on the display of a listfield.
In my application I use a list field wich contain multiple rows. On the screen I display only 5 rows.
When I select a row, a new screen is pushed on the screen. At this moment, I save the index of the selected row.
I press back key, it displays my listfield but the selected rows always appears on the bottom of the screen.
I would like to keep same position of the selected row on the screen.
Does anybody have an idea to do that ?
Thanks in advance
Solved! Go to Solution.
10-04-2011 07:12 AM
10-07-2011 12:49 PM - edited 10-07-2011 12:50 PM
Thx Simon but unfortunately it does not work.
Even if I don't push new screen behaviour is the same :
10-07-2011 09:38 PM
"The selected row is correctly focused but it always appear at the end of the displayed list. I want it keep same place."
One option is to do nothing - so do not refresh the list. If you don't play with the list, the screen will not be updated.
Otherwise, I suggest that you capture the verticla scroll of the containing manager, and set that once you you have updated the list (in addition to set SelectedIndex....).