I download TOC from this site:
When FeatureLayer 1 off, I want to turn on sublayer 3; otherwise set it back to default setting. Here is JSFiddle:Edit fiddle - JSFiddle but all the check box for sublayers not able to check or uncheck anymore. Layers show up correctly. Is there possible to perform this task? Thanks.