When the user clicks on a treeview item checkbox, the following method is called. However, the page is refreshed and the treeview focus is lost. How can I stay with the currently selected item? Thx.
protected void rTree_NodeCheck(object sender, RadTreeNodeEventArgs e)
{
hdnCurrentNode.Value = e.Node.Text;
e.Node.ExpandChildNodes();
if (0 == e.Node.Level)
{
e.Node.Nodes[i].Checked = e.Node.Checked;
}
}
I tried this code as well:
//RadTreeNode rtn = this.rTree.FindNodeByText(hdnCurrentNode.Value, true);
//rtn.Selected = true;
//rtn.Focus();
//rtn.Visible = true;
But didn't help either.