Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Yogesh on Dec 17, 2009 06:28
open dhtmlx forum
Grid Pagination Caching

Hi,
I'm working on dHtmlxGrid control. I want to cache or store page no in pagination. So that I can get that page no and navigate user to that page directly. is there any way in grid or paging to store page no...


Thanks,
Yogesh
Answer posted by Alex (support) on Dec 17, 2009 09:26

Hello,

there is the changePage method that allows to open a specified page: grid.changePage(pageNumber)

There getStateOfView() method returns details about current grid state:

var state = grid.getStateOfView();

var currentPage = state[0];

You can place current page in the cookie and restore it after grid loading.