FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can listview display the last screen of items first?

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Wed Sep 19, 2007 8:07 am    Post subject: Can listview display the last screen of items first? Reply with quote

Greetings, DFL'ers.

I have a listview screen and I would like to display the last screen of items always. It always starts with the first one. Is there a way to tell listview to go to the last screen of items in the listview?

thanks,

jic
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Wed Sep 19, 2007 4:29 pm    Post subject: Re: Can listview display the last screen of items first? Reply with quote

Maybe something like this:
Code:
if(lv.items.length)
   lv.ensureVisible(lv.items.length - 1);
Back to top
View user's profile Send private message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Thu Sep 20, 2007 11:53 am    Post subject: Reply with quote

Works like a charm... gracias.

jose
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group