No Node information in context menu click when using inherited TreeView

3 posts, 1 answers
  1. Missing user
    Missing user avatar

    Posted 14 Nov 2008 Link to this post


    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. Answer
    Atanas Korchev
    Atanas Korchev avatar
    8462 posts

    Posted 17 Nov 2008 Link to this post

    Hello Gabriel,

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

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Missing user
    Missing user avatar

    Posted 18 Nov 2008 Link to this post

    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).
Back to Top