This is a migrated thread and some comments may be shown as answers.

No Node information in context menu click when using inherited TreeView

2 Answers 34 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Missing User
Missing User asked on 14 Nov 2008, 09:13 AM
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!

2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 17 Nov 2008, 04:00 PM
Hello Gabriel,

I couldn't reproduce this problem on my end. Please find attached my test project. What am I missing?


Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Missing User
answered on 18 Nov 2008, 10:41 AM
Thank you for offering a objective view on the issue :) we were burried too deep into our code to notice there was only a simple problem with it (reloading the tree when not necessary).
Tags
TreeView
Asked by
Missing User
Answers by
Atanas Korchev
Telerik team
Missing User
Share this question
or