PDA

View Full Version : How to scroll to a Grid's row (focusRow, scrollTo doesn't work)



maya
7 Oct 2007, 5:18 AM
Hi,

How can I scroll the grid to a specific row?

I tried the following methods (suggested in this forum) and they didn't work for me:
(In this example, I try to scroll to row number 2).

1. method 1:


grid.getView().focusRow(2);//Error: 'rows[...].childNodes' is null or not an object


2. method 2:


grid.scrollTo(2);//Error: Object doesn't support this property or method


Any suggestions?
Thanks,
Maya