hi All
in my page i am using treeview and tabstrip control.in treeview employee is displaying in child node and branch is displaying in parent Node. when i am selecting child node every thing is working properly but while selecting parent node then it's throwing nullrefrence Exception.
and one more thing i am using Telerik latest control i.e. 2010.
previously it was working with 2009. but now it's throwing Exception
so how to get parent Node is seleted or not in Treeview.
my code Is:-
protected void treeOppGroups_NodeClick(object o, RadTreeNodeEventArgs e)
{
//if (treeOppGroups.SelectedNode.ParentNode.Selected)
if(e.Node.ParentNode.Selected)
{
DoReadOnly();
}
else
{
DoReadOnlyFalse();
}
}
Please Help Meeeeeeeeeeeeeeeeee......
in my page i am using treeview and tabstrip control.in treeview employee is displaying in child node and branch is displaying in parent Node. when i am selecting child node every thing is working properly but while selecting parent node then it's throwing nullrefrence Exception.
and one more thing i am using Telerik latest control i.e. 2010.
previously it was working with 2009. but now it's throwing Exception
so how to get parent Node is seleted or not in Treeview.
my code Is:-
protected void treeOppGroups_NodeClick(object o, RadTreeNodeEventArgs e)
{
//if (treeOppGroups.SelectedNode.ParentNode.Selected)
if(e.Node.ParentNode.Selected)
{
DoReadOnly();
}
else
{
DoReadOnlyFalse();
}
}
Please Help Meeeeeeeeeeeeeeeeee......