PDA

View Full Version : How to implement Grid & Tree Grid Scroll To?



liuxing_sc
29 Nov 2011, 3:19 AM
Hi all, I got a problem, i wanna implement functions as below. i got a record from grid, but record is out of my view, i mean i can't see it until using the scrollbar to scroll down. i want to write code to implement auto scroll down in both tree & grid, what can i do? thanks.

tvanzoelen
29 Nov 2011, 5:27 AM
for the grid/tree there is
grid/tree.getView().focusRow(row);

liuxing_sc
29 Nov 2011, 6:24 PM
Hi Thanks dude, but i've tried this method before, i use row index or Record as the parameter, but it doesn't work, btw, my version is 4.0.1.dunno if it has something to do with that. if it could do it, how can i get the parameter row? what is that exactly?

tvanzoelen
30 Nov 2011, 12:08 AM
You must use the newest version, there was proabably a bug earlier. You can try version 4.07.

RowIndex as parameter is corrrect or you can use the record as you wish

liuxing_sc
30 Nov 2011, 5:31 AM
thanks tvanzoelen, but 4.0.7 is not workable for our project, it will brought us more active bugs. but thank you all the same