PDA

View Full Version : Grid scroll listener



maxkliver
6 Jan 2013, 2:41 AM
I have a gridPanel im my application using ExtJs 3.4.
I scroll this grid and want to know how many rows was scrolled.
Its possible?
How i understand i gonna use bodyscroll listener but how to know how many rows scrolled or number first showed row?

wm003
7 Jan 2013, 1:29 AM
Well, you should calculate it. Within the listener you have got the scrolldistance.
No go through each of your grid.columns config and get the width of each column. When subtraction gets <0 you know all columns before have been scrolled out of gridview.