Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Robin on Sep 24, 2008 14:11
open dhtmlx forum
Get the current page & want to display 2nd page in TreeGrid

Hi,

I am using TreeGrid. I need help on 2 things:

1) Want to get the current page.
2) On load of grid, dynamically want to display 2nd page on grid.

Thanks in advance.

Robin
Answer posted by dhtmlx support on Sep 26, 2008 04:07
1)  the current  page  is  the  "currentPage" grid property:

var cPage = grid.currentPage;

2) changePage(pageNum) method can be used in this case:

grid.loadXML(url,function(){
    grid.changePage(2);
});
Answer posted by Robin on Sep 26, 2008 06:18
Thanks for ur reply...