Grid and scroll top on refresh

24 views
Skip to first unread message

chris

unread,
Oct 5, 2010, 9:37:04 AM10/5/10
to MyTableGrid
Hey there,

I've been trying to figure out how to prevent the grid from scrolling
back to top after an automatic refresh.. When I have more rows than
the table displays, it returns to the top. Some of the tests I've
tried "kinda" keeps it there (using self.scrollTop) but then the
render seems unhappy, the rows past the bottom of the table seem lost
until I scroll up and down again.

Thanks, and yes Pablo, you work does merit support, setting up my
PayPal and I'll be buying you a few beers :)
Chris

Pablo Aravena

unread,
Oct 5, 2010, 10:10:29 AM10/5/10
to mytab...@googlegroups.com
Hi Chris

That is because of the lazy rendering, you can try:

tableGrid1.bodyDiv.scrollTop = 300;
tableGrid1._syncScroll();

Maybe I will include a method that set the position in the grid


Have an excellent day

Regards

Pablo

> --
> You received this message because you are subscribed to the Google Groups "MyTableGrid" group.
> To post to this group, send email to mytab...@googlegroups.com.
> To unsubscribe from this group, send email to mytablegrid...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mytablegrid?hl=en.
>

Reply all
Reply to author
Forward
0 new messages