for (var hb:int=0; hb<wTemplate.headerToolGroup.numElements; hb++){ var tbb:TitlebarButton = wTemplate.headerToolGroup.getElementAt(hb); if(tbb.callback == showGridResults) tbb.enabled = false; }
Larry,
Try to remember to post Flex Viewer Question to the viewer forum.
http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex
Here is some code to do that:for (var hb:int=0; hb<wTemplate.headerToolGroup.numElements; hb++){ var tbb:TitlebarButton = wTemplate.headerToolGroup.getElementAt(hb); if(tbb.callback == showGridResults) tbb.enabled = false; }