Loading next block of pages when page is selected

Given the following situation, a dhtml grid is configured for paging and displaying paging links

for 10 pages at a time. The data involved spans well over 30 pages.



When the data is initially loaded, page 1 is displayed and my paging numbers available are

as follows:



< 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 >



If I change my current page to Page 8 and then want to get to page 11, I have to either

click next page ( “>” ) through all pages or select page 10, then click next page.



Is there a way to configure dhtmlx so that when I select page 8 for instance, page 8 will be displayed and the

available pages shift something like the following:



< 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 >



Thanks

You can use setPagingTemplates method to configure how your paging will look:
mygrid.setPagingTemplates(“Pages - [current:0] [current:+1] [current:+2] , from [total] rows”,"")
Please find more information here dhtmlx.com/docs/products/dhtmlxG … custpaging