DHTMLX Docs & Samples Explorer

enableXMLSmartRefresh(mode)

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

enables/disables smart refresh mode, when loading XML proceeds to refreshing folders content if any new item came from server (it checks number of items and each item id)

  • mode - true to enable, false to disable
    var mode = document.getElementById('smart_flag').checked
    myFolders.enableXMLSmartRefresh(mode);
    if(!mode)
        myFolders.clearAll();
    myFolders.loadXML(url);