AnsweredAssumed Answered

How do I have a LayerList expanded when application loads?

Question asked by dschatt on Apr 14, 2016
Latest reply on Jun 22, 2017 by JimNoel

Hi all, I have a LayerList from a dynamic map service but only the header (layer "id" text)  displays upon loading.  The user must click the arrow icon on the right to expand the list and see the sublayers.  I just want the LayerList to be expanded when the application loads.   But apparently there's no "expanded" property to set for a LayerList.  Does anyone have any idea how to do this?  I asked ESRI tech support and they said there's no way to do this in the API but I find that hard to believe.  See images below.  Thanks!

 

What there is now:

a1.JPG

 

What I would like:

a2.JPG

Outcomes