DHTMLX Docs & Samples Explorer

enablePaging(itemsPerPage,withDynLoading)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxfolders.js

enables/disables paging in Folders and sets number of items per page to use

  • itemsPerPage - number of items per page, or (if 0) disable paging
  • withDynLoading - true to allow dynamical loading

To enable paging use the following code:

    myFolders.enablePaging(25);
    //or this one if you need folders to send additional request to server for additional portion of items:
    myFolders.enablePaging(25,true);

To disable paging use one of the following:

    myFolders.enablePaging(false);
    //or 
    myFolders.enablePaging(0);