TreeNodeAdv.Tag property

Hi,

While constructing the node I am assigning an object to Tag property of TreeNodeAdv.
But it returns "null" while accessing in AfterExpand event.
Can someone pls help in resolving the issue.

private void tvSync_AfterExpand(object sender, TreeViewAdvNodeEventArgs e)
{
if (e.Node.ExpandedOnce) return;
if (e.Node.Level == 1)
{
drvNode = (DataRowView)e.Node.TagObject;
BuildLenderBookBuffer(e.Node, drvNode);
BuildLCB(e.Node, drvNode);
}
}


Thanks,Ravi



2 Replies

AD Administrator Syncfusion Team August 7, 2008 06:11 AM UTC

Hi,

This issue has been resolved now.
if (e.Node.Level == 2)
{
drvNode = (DataRowView)e.Node.Tag;
BuildLenderBookBuffer(e.Node, drvNode);
BuildLCB(e.Node, drvNode);
}

Regds,
Ravi
>Hi,

While constructing the node I am assigning an object to Tag property of TreeNodeAdv.
But it returns "null" while accessing in AfterExpand event.
Can someone pls help in resolving the issue.

private void tvSync_AfterExpand(object sender, TreeViewAdvNodeEventArgs e)
{
if (e.Node.ExpandedOnce) return;
if (e.Node.Level == 1)
{
drvNode = (DataRowView)e.Node.TagObject;
BuildLenderBookBuffer(e.Node, drvNode);
BuildLCB(e.Node, drvNode);
}
}


Thanks,Ravi






AD Administrator Syncfusion Team August 7, 2008 06:21 AM UTC

Hi Ravi,

Thank you for the update.

Thank you for your interest in Syncfusion Products.

Regards,
Hema


Loader.
Up arrow icon