(1) For paginal output, is there a way to get the current p


(1) For paginal
output, is there a way to get the current page number and the total number of
pages available?



(2) In The following event call:



setOnPageChanged(func) [Professional]

set event handler to handle page changing (paginal output)


Object:
dhtmlXGridObject

Topic(s): event handlers; paginal output;

File required:dhtmlXGrid_pgn.js

  • func - function to call

What are the parameters passed to the callback function?


(1) There is a currentPage property in dhtmlxGrid. Try
to use next approach:


var curPage=mygrid.currentPage;



(2) The parameters passed to the onPageChanged handler
are:


page - new selected page ( zero based page index )


startRowInd - start row index ( index of firs row on
page )

lastRowInd - last row index (index of last row on page)