Hi Telerik Team !
I have the follw code :
protected void radTreeTestCase_NodeExpand(object o, RadTreeNodeEventArgs e)
{
// expand node STRQ
if (e.NodeClicked.Level == 0)
{
e.NodeClicked.Nodes.Clear();
int strqID = Convert.ToInt32(e.NodeClicked.ID);
......
nodeFEAT.Image = "../Images/Level1.gif";
nodeFEAT.ExpandMode = ExpandMode.ServerSide;
e.NodeClicked.Nodes.Add(nodeFEAT);
}
.....
And then It occur Error :
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Source File: e:\Project EPM\EPM_site\EPM Website\EPM\ProjectInfo\pgTestCase.aspx.cs Line: 1613
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
So I can't user method Focus to focus. So You can explain this error for me and help me solve with this problem to can focus with Control RadTreeView ?
Thank you verry much !
I have the follw code :
protected void radTreeTestCase_NodeExpand(object o, RadTreeNodeEventArgs e)
{
// expand node STRQ
if (e.NodeClicked.Level == 0)
{
e.NodeClicked.Nodes.Clear();
int strqID = Convert.ToInt32(e.NodeClicked.ID);
......
nodeFEAT.Image = "../Images/Level1.gif";
nodeFEAT.ExpandMode = ExpandMode.ServerSide;
e.NodeClicked.Nodes.Add(nodeFEAT);
e.NodeClicked.Focus();
}}
.....
And then It occur Error :
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 1611: e.NodeClicked.Nodes.Add(nodeFEAT); |
Source File: e:\Project EPM\EPM_site\EPM Website\EPM\ProjectInfo\pgTestCase.aspx.cs Line: 1613
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] |
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
So I can't user method Focus to focus. So You can explain this error for me and help me solve with this problem to can focus with Control RadTreeView ?
Thank you verry much !