Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Robin on Aug 20, 2008 12:38
open dhtmlx forum
Remove all toolbar items

Hi,

How to remove all the items from DHTML toolbar? Is there any function to remove all or to get the size of items on toolbar. Coz I am adding items dynamically on toolbar.

Also when I try to load items using loadXMLString() function, it appends the new items to existing toolbar items. Can I have some function to delete existing and show only new items.

Thanks in advance. Please reply me asap.
Answer posted by Support on Aug 21, 2008 02:13
>>to remove all
There is no such built in functionality

>>or to get the size of items on toolbar
Count of items can be fetched as 
             toolbar.itemsCount

>>. Can I have some function to delete existing and show only new items.
The only way is to delete all existing items (by toolbar.removeItemByPosition ) and load new configuration after that.