Sample: dhtmlxFoldersEnable paginal outputdhtmlxFolders main page
X
Disable Paging
Enable Paging with 10 items per page
Enable Paging with 5 items per page
Enable Paging with 10 items per page and dynamical loading*
* - as soon as we use static xml file for this sample, dynamical loading will load same content endlessly.

Paging state remains while changing types

F-icon
F-tiles
F-table
 
<div id="folders_container" style="width:400px;height:300px;overflow:hidden;"></div>
<div id="pager" class="pager" style="display:none;"></div>    
<script>
 
    //enable paging with 10 items per page
    myFolders.enablePaging(10);
    
    //change number of items per page to 5
    myFolders.enablePaging(5);
    
    //disable paging
    myFolders.enablePaging(false);
    
    //enable paging with 10 items per page and dynamical loading
    myFolders.enablePaging(10,true);
    
    //specify where to put pages (in this case DIV element with ID "pager")
    myFolders.setPagerContainer("pager");
</script>