Re: ASP.NET Treeview selectedNodeStyle



Hi,

There is no bug, you missed one line after adding the new node. when you
insert the new node then you make that your selectednode's selected property
is false. Sample code is below:

TreeView1.SelectedNode.Selected = false;

Have a nice work,

Aytaç ÖZAY
Software Engineer

<cyriel1920@xxxxxxxxxxxxx> wrote in message
news:02C37FFC-53B0-47A9-A9AF-C1F9951E551B@xxxxxxxxxxxxxxxx
Hi,

I use the selectednodestyle with a white background so the user can see
which item was chosen in the treeview navigation.
The nodes have a navigateURL with a target to another frame.
Navigating works with no postback and the style follow the selected node.
When a new child is added to a node there is a button to refresh the node.
This is done by a postback. After this postback the selected node stays
keeps the selected style.

I think it is a bug.
Could I have done something wrong?
Any information is welcome.

Koen


.


Loading