HI ALL
I have a text box in edit item template in a rad grid
during the edit mode i fill this text box with the selected node of the RAD tree .
not able to find the text box during the edit mode whereas during insert its working fine.
protected void RadTreeView1_NodeClick(object sender, RadTreeNodeEventArgs e)
{
RadTreeView TreeNode = (RadTreeView)TreeControle.FindControl("RadTreeView1");
-------------------------THIS PART IS WORKING FINE--------------------------------------
if (rdUserlist.MasterTableView.IsItemInserted == true)
{
TextBox txtCb1 = (TextBox)rdUserlist.MasterTableView.GetInsertItem().FindControl("txtCb");
txtCb1.Text = SLName;
}
else
{
--------------------NOT ABLE TO FIND THE TEXT BOX DURING EDIT ------------------------------------------------
-----------------OBJECT REFRENCE ERROR -----------------------------------------------------
TextBox txtCb1 = (TextBox)rdUserlist.MasterTableView.EditItem.FindControl("txtCb");
txtCb1.Text = SLName;
}
TreeNode.CollapseAllNodes();
TreeNode.ClearSelectedNodes();
}
}
Thanks