You can do a few things to configure your tree.
It is vital this is set correct for the tree to work. Default path is "javascript/xtree.js". You can change it by doing
XTreeConfig config = xTree.GetConfig(); config.JavascriptLocation = "<a relative url>";
The default path to the image directory is "images/". You can set the image directory by
XTreeConfig config = xTree.GetConfig(); config.SetConfValue(PredefinedParameter.imagesPath, "'a relative url'");NOTE: Surrounding the image path with "'" is vital.
The stylesheet location can be changed simply by changing the stylesheet tag. See "Add stylesheet" on the install page for more info.
The easist way to change the look of the tree is by editing the stylesheet and by using diffrent images. If you make you own look or if you create new icons for the nodes please send them to me. More info under themes & icons.
There is a property of the XTreeConfig class named StoreInSession. If is is set to true the tree will be stored in the Session context and retrived at postback. The advantages are:
The disadvantage is that the session times out (default setting 20 minutes). If you repost the page/frame when the session is dead, you MUST redirect the post, either to a reload of the tree location or to another url otherwise you will get an error. If you have a websolution where you need to be logged in the session option is perfect for you (most log in solution use sessions).
Default is false.
You set it by doing:
XTreeConfig config = xTree.GetConfig(); config.StoreInSession = true;