Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by otter on Jul 10, 2008 04:41
open dhtmlx forum
dhtmlxFolder dynamic paging

How does the dynamic paging works?
Where i have to set the total numbers of items in the xml?
Answer posted by support on Jul 10, 2008 09:22
dhtmlxFolders v.1.0 doesn't require (and can't show) total number of records in dynamical paging. Instead, it shows number of pages it knows about and add new pages to the group when new portion of content comes from server.
Answer posted by otter on Jul 11, 2008 00:09
This doesn't works for me.
If i use enablePging(10,true) and in the dynamic xml i read always 11 items, then the item i read more is shown double in folder.
But i have to read more items in xml as in paging defined.
Is there a plan to update dhtmlxFolders to use the thame paging routine as in dhtmlxGrid?


Answer posted by support on Jul 11, 2008 02:21

If you mean that with new portion of pages you get same content as previously, then you probably do not take dhx_global_page parameter into account producing XML for response.

As to our plans - yes we are going to introduce total_count attribute in Folders' XML like we have for dhtmlxGrid, with all related functionality. Update should be released by the end of this month. 

Answer posted by otter on Jul 11, 2008 02:59
i use dhx_global_page but i have to read more items in xml as in paging defined.
Example:
enablePaging(10,true)
in xml i read 11 items

Then on second page 1 item is double

Answer posted by support on Jul 14, 2008 06:56
Probable reason is that you start creating next portion of items from 11th element, but not from 12th. If this is not the case, then we need working sample to help you.