Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Adriano Fabri 469 posts 1633 karma points
    Jun 01, 2017 @ 13:04
    Adriano Fabri
    0

    How to disable context menu in a custom section

    Hi to all, there is a way to disable context menu in custom section for a tree items?

    Now I have this code and if I open the context menu and the context menu is empty...but I would to disable the context menu when a tree item have no actions.

        protected override MenuItemCollection GetMenuForNode(string id, FormDataCollection queryStrings)
        {
            return null;
        }
    

    Adriano

  • Max 80 posts 437 karma points
    Jun 19, 2018 @ 22:08
    Max
    0

    Old issue, no resolution... with the updates to v7 over the last year+ does anyone have a possible solution?
    (Second... how do I force my tree to "reload" if I make changes to my TreeController? What files do I need to remove or modify to get the Tree to reload?)

    I have a working tree, but I have to rebuild my solution to get the tree to update if I modify my CustomTreeController.

    I also return null on the MenuForNode override... But I still get a context menu and a dialog popout... that I'd like to disable.

    enter image description here

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies