Check documentation for the latest version of dhtmlxSuite getStateOfView DHTMLX Docs

getStateOfView

returns details about current grid state

array getStateOfView();
arraydetails about current grid state

Example

var state=myGrid.getStateOfView();

Details

If the paging mode is enabled:

  • state[0] = the number of the currently active page
  • state[1] = the index of the top row on the page
  • state[2] = the index of the last row on the page
  • state[3] = the number of rows in the grid

If the paging mode is disabled:

  • state[0] = the index of the top visible row
  • state[1] = the height of the visible area in rows
  • state[2] = the number of rows in the grid
Back to top