I am implementing a user submitted TOC widget from:http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109I imagine a few of you have this in your applications as I have found no other widget that combines layer controls with legend display. The 2 issues I am having after I have it working is that it disables the expandopanes in the application and I cannot figure out how to get the +/- buttons on a group instead of a check box like the example here:http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.03/examples/toc.htmlThe expandopane issue is a real killer for my app as I use them for a few things. If I take this code out that creates it�?� the expandos work fine. But as soon as I put the TOC in, the expandos stop working?dojo.connect(map, 'onLayersAddResult', function (results) {
var toc = new agsjs.dijit.TOC({
map: map,
style: "inline",
layerInfos: [{
layer: DynamicLayers,
title: "Base Data",
slider: true
}]
}, 'tocDiv3');
toc.startup();
});Any ideas would really be appreciatedAlso, I forget to say that I needed to add this code above the current code to make it work or I get an error:Error: Unable to draw graphic (geometry:null, symbol:null): Tried to register widget with id==tocDiv2 but that id is already registered ANDError: Tried to register widget with id==tocDiv2 but that id is already registered var TOCDiv = dijit.byId('tocDiv2'); if (TOCDiv) { TOCDiv.destroyRecursive(true); }This may have something to do with it also... but I am not sure.