Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Dan Berkich on Apr 21, 2007 19:37
open dhtmlx forum
In the following code snippet the AfterToolbarLoad is not called. Why not? function AfterToolbarLoad() { alert('AfterToolbarLoad'); aToolBar.hideItem('AjaxProgressIndicator'); aToolBar.disableItem('CmdDelete'); aToolBar.disableItem('CmdNew'); aToolBar.disableItem('CmdUpdate'); } function BuildMainScreen() { aToolBar=new dhtmlXToolbarObject(document.getElementById('toolbar_zone'),'100%',16,'Web CSI'); aToolBar.setOnClickHandler(SearchCmd); //onButtonClick); aToolBar.setImagePath(g_baseURL + 'imgs/'); aToolBar.loadXML(g_baseURL + '_toolbar.xml',AfterToolbarLoad); aToolBar.showBar();


Answer posted on May 07, 2007 11:43
Problem confirmed and fixed, the fix will be available as part of next build, for now please use attached file instead of original one.
Answer posted by Andrew on Aug 27, 2007 14:12
sorry, I can't download the fix.
I have the same problem, I cannot use disable, or disableItem right after loading the toolbar,
neither with onShowHandler, nor after creation with toolbar.disableItem('itemid');

but if i use disable or enable later from other functions, it works right.
Answer posted by Alexandra (Support) on Nov 29, 2014 19:58

If you haven't found the needed information there and still looking for a solution, you will find the additional help checking gantt chart demo and download calendar javascript.