DHTMLX TOOL BAR RELOAD

Hi,



I am having a scenario where i have to refresh the toolbar. i was trying it with firing loadXML() again … but it is noy working.

its able to fetch the new content for the toolbar but not able to remove the old content … new content is getting added to the old content .

but i want to remove the old and show the new content .

Hello,

You can do it using script like this:

toolbar.forEachItem(function(itemId){
    toolbar.removeItem(itemId);
});