G
Guest
Hi Everybody,
I've got a strange problem with TreeView Control in ASP.NET.
The Controls Tree I've got on my page is like this:
MasterPage
Content[
UserControl[
Menu,
MultiView[
View1[
TreeView
]
View2[
...
]
]
]
The Menu control has two items that switch between the two Views in the
MultiView (I'm setting MultiView.ActiveViewIndex in the MenuItemClick event
handler).
Now, The problem happens when I select a node in the tree, click on the menu
item to move to View2, and the I click on the menu item to come back to View2.
In the MenuItemEvent handler, TreeView1.SelectedItem is null!
But, when the page is displayed the node that was selected before I moved to
the other view is displayed as selected!
I looks as if the ViewState of the Tree is restored AFTER the MenuItemClick
handler is called!
Has anybody ran across this problem before?
Nadav
I've got a strange problem with TreeView Control in ASP.NET.
The Controls Tree I've got on my page is like this:
MasterPage
Content[
UserControl[
Menu,
MultiView[
View1[
TreeView
]
View2[
...
]
]
]
The Menu control has two items that switch between the two Views in the
MultiView (I'm setting MultiView.ActiveViewIndex in the MenuItemClick event
handler).
Now, The problem happens when I select a node in the tree, click on the menu
item to move to View2, and the I click on the menu item to come back to View2.
In the MenuItemEvent handler, TreeView1.SelectedItem is null!
But, when the page is displayed the node that was selected before I moved to
the other view is displayed as selected!
I looks as if the ViewState of the Tree is restored AFTER the MenuItemClick
handler is called!
Has anybody ran across this problem before?
Nadav