Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<CFTREE> problem

Status
Not open for further replies.

tlhawkins

Programmer
Dec 28, 2000
797
US
Does anyone know how to make a <CFTREE...> be closed by default. I have a lot of Query data and I want the user to be able to view the upper level easily and then choose what to focus on.

I get this by default:

- level1
-level2
level3
-level2.1
level3.1

What I want is this:

+ level1

That's it, I don't want my user to have to close everything just so they can see one section.

Any Ideas?



 
Hey Tl,

I don't do a lot with <cftree> but I think you want to set the &quot;expand&quot; attribute to &quot;no&quot; in your <cftreeitem>s as the default is &quot;yes&quot;.

Hope this helps,
GJ
 
Thanks GunJack,

I think you should write a book, I've got a couple and none mentioned that attribute.

For anyone else asking this question in the future you can list this attribute for Queryied <cftree>s like this

Expand=&quot;yes,no,no,no&quot;

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top