Hello,
we are using the TreeView control on several pages and it's always loaded with the same data and behaves almost in the same manner. To prevent us from doing repetitive coding related to this tree on all these pages we inherited the TreeView control and placed common code (such as loading, node expanding, etc) inside the derived control.
The problem is with context menus on the nodes. If we define a context menu and and assign an event handler then the RadTreeViewContextMenuEventArgs object passed to the handler always has a null value in the Node field. We are thus unable to determine which node to direct our actions upon. However the MenuItem field of the same object is correctly filled with the usual information.
Is there something we missed to override/implement in the derived TreeView control? Or maybe something on the client side?
Thank you!
we are using the TreeView control on several pages and it's always loaded with the same data and behaves almost in the same manner. To prevent us from doing repetitive coding related to this tree on all these pages we inherited the TreeView control and placed common code (such as loading, node expanding, etc) inside the derived control.
The problem is with context menus on the nodes. If we define a context menu and and assign an event handler then the RadTreeViewContextMenuEventArgs object passed to the handler always has a null value in the Node field. We are thus unable to determine which node to direct our actions upon. However the MenuItem field of the same object is correctly filled with the usual information.
Is there something we missed to override/implement in the derived TreeView control? Or maybe something on the client side?
Thank you!