Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Siddhartha on Dec 02, 2008 23:08
open dhtmlx forum
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 .
Answer posted by Support on Dec 03, 2008 07:14
Hello,

You can do it using script like this:

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