Select to view content in your preferred language

Changing the expand behavior on "Table of Contents Widget for FlexViewer 2.x"

1017
3
Jump to solution
01-25-2012 11:05 AM
by Anonymous User
Not applicable
Original User: bcgis

I'm trying modify Robert's code to only expand only the "top layer"? I have this functionality coded in my old 1.3 Flexviewer that I figured out, so I assume this is possible but after spending a couple of days on it I can't seem to figure it out.

The problem is with using "extended=true" is that it expands lengthy layers such as "soils' and some layers don't expand at all. This is what I get by default in the first screenshot. What I would like to see is in the second screenshot.

Thanks,
Bo
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Original User: rscheitlin

Bo,

   Now looking closer you might get your desired result by using:

    <tocsettings>         <expanded>true</expanded>         <collapselegends>true</collapselegends>     </tocsettings>
in the TOCWidget.xml

View solution in original post

0 Kudos
3 Replies
by Anonymous User
Not applicable
Original User: rscheitlin

Bo,

   Now looking closer you might get your desired result by using:

    <tocsettings>         <expanded>true</expanded>         <collapselegends>true</collapselegends>     </tocsettings>
in the TOCWidget.xml
0 Kudos
BoCastillo
Deactivated User
That did the trick. I looked at the XML I don't know many times and outright missed that tag. :confused:
0 Kudos
by Anonymous User
Not applicable
Original User: rscheitlin

Bo,

   Glad you got it working. Don't forget to click the top arrow (promote) and to click the Mark as answer check as shown below:
0 Kudos