Categories | Question details Back To List | ||||||||||||||
DHTMLX Grid : Paging Issues The paging needs to be something like this : Results Total 55 << Previous x 1 2 3 4 5 ........ y Next x >> The << sign should take the user to the first page. The >> sign should take the user to the last page. The y is a number that user will be able to see that many links in the paging and the user will be able to skip x number of pages each time they click on next x or previous x. Answer posted by Support on Jul 24, 2008 02:50 can be set as mygrid.setPagingTemplates("Results Total [total] <span onclick='mygrid.changePage(1);'><<</span> [prevpages:Previous: ] [currentpages:, ] [nextpages:Next: ] <span onclick='mygrid.changePage(999);'>>></span> ",""); http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_paging.html#grid_art_custpaging Answer posted by Ramakrishna on Jul 30, 2008 00:18 Hi, I have a query, Suppose take this situation. I am taking x and y values from database to customize the paging. For example : Results Total 14 << 1 2 3 Next 7 >> As there are only 14 records and each page is showing 5 records, How can I disable the showing of Previous 7 and Next 7 links from paging as is not necessary to show them because Total no. of pages showing records are 3 only ??? Means it should be automatic I think. Please help. Answer posted by Support on Jul 30, 2008 02:20 Problem confirmed and fixed. Fix will be released as part of next build. ( fixed version of dhtmlxgrid_pgn.js sent by email ) Answer posted by Tejas Shah on Jul 30, 2008 02:37 Hi there, I am also facing the same problem, please send the dhtmlxgrid_pgn.js file to me also. My E-Mail Id : ejash1983@gmail.com I will be grateful to you people. Answer posted by Tejas Shah on Jul 30, 2008 07:55 Hi, As I have made some changes in dhtmlxgrid_pgn.js to work according to the requirements, I dont know where you people have made changes to function according to the below requirements. I am attaching my dhtmlxgrid_pgn.js, please make the same changes in my file please. Thanks in advance. Attachments (1)
Answer posted by Support on Jul 31, 2008 03:22 Lines - 42-43 in attached js file. Attachments (1)
Answer posted by Tejas Shah on Jul 31, 2008 05:39 Thanks for the quick support. DHTMLX Rocks Answer posted by Ramakrishna on Jul 31, 2008 09:48 Hi, I have a query : I don't want to show << for first page and >> for last page , how to do it ? Answer posted by Support on Jul 31, 2008 10:06 The only way to achieve such dynamic behavior - create custom paging skin. It can be done with ready-to-use solutions. http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_paging.html#grid_art_custpaging |