Hi,
In my aspx page, left side I'm displaying Treeview, right side a Panel which nodes for creating new node.
I'm Creating Treeview dynamically.
I have a Treeview context menu for creating new node.
When user creates new node using context menu(user provides details on right side), and clicks on create, that nodes should be created and that node path to be expanded and selected.
I 've tried like this
But this is not making my work done. I placed this under button click where new node is created, but New node which user provides is creating, but I need its path to be expanded and selected state.
Thanks
Krishna
In my aspx page, left side I'm displaying Treeview, right side a Panel which nodes for creating new node.
I'm Creating Treeview dynamically.
I have a Treeview context menu for creating new node.
When user creates new node using context menu(user provides details on right side), and clicks on create, that nodes should be created and that node path to be expanded and selected.
I 've tried like this
string
NewNodeName = ViewState[
"NewChart"
] !=
null
? ViewState[
"NewChart"
].ToString() :
string
.Empty;
foreach
(RadTreeNode node
in
TreeLubeChart.GetAllNodes())
{
if
(node.Text == NewNodeName)
{
node.Selected =
true
;
node.Expanded =
true
;
}
}
Thanks
Krishna