Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by pepys on May 26, 2009 03:16
open dhtmlx forum
:: pepysDHTMLX :: myFolders.enablePaging

I use now dhtmlxFolders and I want to know if is there any posibility to have some operation like we have in grid's paging. I mean, when I use

myFolders.enablePaging(15, true);

with 5 items per page, in the pager div, I have just pages [1] [2] [3], but I have 50 items in table and I want to have all 10 pages in pager div, or just 5 pages and something [->] like we have on grid pager.

So, can I have all of this? Thanks
Answer posted by Support on May 26, 2009 03:28
The "paging" area has buttons for all pages which currently loaded to client side. ( for static paging - it will be pages for all data , for dynamic paging - it will be pages for loaded items only )
The only way to change the way how pager are rendered - redefine drawPager method of folders with any custom logic. 

Answer posted by pepys on May 26, 2009 06:29
Ok, thank you, but is there any posibility to can have in dhtmlxFolders the same drawPager like we have in dhtmlxGrid, with the same functionality? I like very much the drawPager from dhtmlxGrid, and I would like to have the same in dhtmlxFolders also.

Others question: for a photo gallery, using dhtmlxFolders, can I have some input texts for each one, in order to can modify instantly some information for each photo? I want to mention that I don't take automatically the pictures from a folder, but using a mysql query from database, ad there any picture is an row in table, with an order value, name, etc. Have I to modify something in fthumbs.xsl, how?
Answer posted by pepys on May 27, 2009 10:43
Hi, I'm still waiting for an answer please..
Answer posted by dhtmlx suport on May 28, 2009 02:06

About pager: Do you mean same appearence as dhtmlxGrid "bricks" paging skin? You can create any visual appearence redefining mentioned method. You also can order this from us or wait till developer have time for this task (it is in the list already, but with middle priority).

As to your other question: you need to create your own XSL which will take all necessary appearence requirements into account or you can create item parser with Javascript. For more details please see:

http://www.dhtmlx.com/docs/products/dhtmlxFolders/doc/articles/xslbased.html#folders_owntypes

http://www.dhtmlx.com/docs/products/dhtmlxFolders/doc/articles/jsbased.html#folders_owntypes_js