I've been trying to use the DNNTree Control but I can't get it to select a node when a user clicks on it...
Here is the best exampled I've come up with:
1.
<
dnn:DnnTree
ID
=
"DNNTreeTest"
runat
=
"server"
PopulateNodesFromClient
=
"true"
2.
CollapsedNodeImage
=
"../../images/Plus.gif"
3.
ExpandedNodeImage
=
"../../images/Minus.gif"
>
4.
<
TreeNodes
>
5.
<
dnn:TreeNode
ClickAction
=
"None"
Selected
=
"true"
Key
=
"1"
Text
=
"Test1"
Enabled
=
"true"
LeftHTML
=
"abs"
RightHTML
=
"def"
/>
6.
<
dnn:TreeNode
ClickAction
=
"None"
Selected
=
"false"
Key
=
"2"
Text
=
"Test2"
Enabled
=
"false"
/>
7.
</
TreeNodes
>
8.
</
dnn:DnnTree
>
When this is rendered, neither node is selected and the second one isn't disabled... What am I missing? (I've even looked at the FileManager code but I don't see anything.)
My next test:
01.
<
dnn:DnnTree
ID
=
"DNNTreeTest"
runat
=
"server"
PopulateNodesFromClient
=
"true"
02.
CollapsedNodeImage
=
"../../images/Plus.gif"
03.
ExpandedNodeImage
=
"../../images/Minus.gif"
04.
CheckBoxes
=
"true"
CheckBoxMode
=
"SingleSelect"
>
05.
<
TreeNodes
>
06.
<
dnn:TreeNode
ClickAction
=
"None"
Selected
=
"true"
Key
=
"1"
Text
=
"Test1"
Enabled
=
"true"
LeftHTML
=
"abs"
RightHTML
=
"def"
/>
07.
<
dnn:TreeNode
ClickAction
=
"None"
Selected
=
"false"
Key
=
"2"
Text
=
"Test2"
Enabled
=
"false"
/>
08.
</
TreeNodes
>
09.
</
dnn:DnnTree
>
Note that in this one, I put in CheckBoxes so you can at least see that a node is selected, but I would like to highlight the node to make it simpler to the user. Ideas?