Hi all
We have a PanelBar with some nested treeviews which are created programmatically, i.e. at runtime in the code behind. The items in the PanelBar are dynamically created as well. Unfortunately when a postback occurs, the TreeViews just disappear.
The code of Page_Load is basically:
if (!IsPostBack)
{
BuildNavigation();
}
The result of calling BuildNavigation() also in a postback would be that the PanelBarItems appear twice, so this is not the solution.
How can I make shure that the TreeViews are generated also in the postback?
Thank you!
We have a PanelBar with some nested treeviews which are created programmatically, i.e. at runtime in the code behind. The items in the PanelBar are dynamically created as well. Unfortunately when a postback occurs, the TreeViews just disappear.
The code of Page_Load is basically:
if (!IsPostBack)
{
BuildNavigation();
}
The result of calling BuildNavigation() also in a postback would be that the PanelBarItems appear twice, so this is not the solution.
How can I make shure that the TreeViews are generated also in the postback?
Thank you!