Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 14, 2007 14:52
open dhtmlx forum
(1) For paginal output, is there a way to get the current page number and the total number of pages avai...

(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?
Answer posted on Mar 14, 2007 14:52

(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)
Answer posted by Stanislav (Support) on Dec 09, 2014 09:00

I hope this information will be enough for you. But you also can have a look at data grid control and gaint chart.