Home - Forums-.NET - FlyTreeView (ASP.NET) - CommandArgument for FlyContextMenu

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

CommandArgument for FlyContextMenu
Link Posted: 15-Sep-2007 13:45
I have a FlyContextMenu that postbacks when a menu item is clicked.  I need to get information about the node that was right clicked so I'm using this line in command event:

Dim tNode As FlyTreeNode
tNode = FlyTreeView1.FindByID(e.CommandArgument)
        
The FindByID function is returning Nothing.  I have given the node an ID at design time.  Any idea what I'm doing wrong here?

Thanks.
Link Posted: 15-Sep-2007 20:10
How do you set node ID?
It is set automatically at run time and a read-only property.
Link Posted: 16-Sep-2007 06:37
[quote="EvgenyT"]How do you set node ID?
It is set automatically at run time and a read-only property.


I'm not sure what I was doing wrong but I walked away from it came back and it's working correctly now.  Sorry, please ignore this topic.