PDA

View Full Version : Virtual grid scroll bar does not update on sort direction change



Eric24
28 Apr 2011, 9:08 PM
Using the 50,000 row example grid, scroll down a little ways and change the sort direction of the LastPost column. The grid refreshes and "resets" to the first row, but the thumb position does not change (i.e. it should move back to the top).

stevil
29 Apr 2011, 6:10 AM
have you tried doing the following?



myGrid.store.on('load', function(t) { this.invalidateScroller(); }, myGrid);

Eric24
29 Apr 2011, 7:11 AM
No. I wasn't really focused on fixing it, just making it known that there was a bug in the example. Also, I would say that even if it could be fixed externally, that functionality should be internal to the grid.

stevil
29 Apr 2011, 7:34 AM
Agreed - was really interested to see if that changed the behavior, as I've observed weirdness with the scroller myself.

stevil