DHTMLX Docs & Samples Explorer

getStateOfView()

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxgrid.js

returns details about current grid state

   var state=mygrid.getStateOfView();

If paging mode is enabled:
state[0] = number of current active page
state[1] = index of the top row in the page
state[2] = index of the last row in the page
state[3] = number of rows in grid

If paging mode is disabled:
state[0] = index of the top visible row
state[1] = height of the visible area in rows
state[2] = number of rows in grid

See also: enablePaging