Is it possible to rebind or refresh agsjs.dijit.TOC and esri.dijit.Legend if i add an additional Service dynamically after loading the complete map page along with TOC and Legend.....
You can detect when a layer is added to the map by listening for map.onLayerAdd(). You can then refresh the legend using legend.refresh(). The TOC probably has an equivalent refresh method.
Steve
for TOC i cant find any refresh method....