Deselect default in TreeView control.

  • Thread starter Thread starter hartbypass
  • Start date Start date
H

hartbypass

Hello,

I have two treeview controls on a page. By default it appears that the
top item in both my trees are selected. I would like neither of these
to be selected initially. Is there a way to do this?

Thanks,
Greg
 
Hi Luc,

I had tried using the following before posting my question:

TreeView1.SelectedNodeIndex = null;

So maybe you meant the same thing since treeView1.SelectedNode does not
seem valid.

With what I tried I still get with three tree controls on one page:

TreeLevel1 (highlighted)
SubLevel1
SubLevel2
TreeLevel2 (highlighted)
SubLevel1
SubLevel2
TreeLevel3 (highlighted)
SubLevel1
SubLevel2

So I am trying to get to where nothing is highlighted. I thought maybe
setting some color to white or transparent, but that did not work
either.
 
I just realize you are speaking about WebForms while I use WinForms. I think
until V2.0 you don't have a supported treeview in WebForm and the
unsupported gadget is just that.

/LM
 
Back
Top