TOC checkboxes not updating properly when layer visibility is changed programatically

687
4
01-23-2013 08:26 AM
EswariManickam
New Contributor II
I am trying to get the check boxes in the Table of Contents to update properly whenever a layer visibility is changed.  The check boxes do not get updated properly when the TOC is kept open while the layer visibility is changed via code (from another tool).

However, when I change the visibility of the layer first and then open the TOC - The checkboxes are updated correctly. Any idea on this? Is this a known bug?

http://forums.arcgis.com/threads/62053-TOC-component-does-not-update-to-programmatic-changes-to-laye...

Thanks!
Tags (2)
0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Eswari,

   Are you speaking of the TOC Widget (non-esri widget) http://www.arcgis.com/home/item.html?id=e2cb71d5c04d40d19e9f945ae0db7ce8

Or the OTB esri MapSwitcherWidget or LayerListWidget?
0 Kudos
EswariManickam
New Contributor II
Hi Robert,

I am not using the Flex viewer. This is the TOC component in itself bundled as a package in my flex application.  I have attached the package.

Thanks for your quick response!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Eswari,

   OK my mistake I will move this thread back to the Flex API forum then. You will need to get help from the code developer that provided this package then.
0 Kudos
EswariManickam
New Contributor II
The TOC package is an ESRI developed tool - was taken from ESRI website. Would be great if some one could take a look at it!

Thanks!
0 Kudos