Copied to clipboard

Flag this post as spam?

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


  • Frans de Jong 548 posts 1840 karma points MVP 4x c-trib
    Feb 02, 2018 @ 11:15
    Frans de Jong
    0

    Remove context menu dots for root of custom tree

    Hi all,

    I'm building a custom tree in Umbraco and I want to remove the context from items. I cant find a working solution...

    So remove the 3 dots and the right click action.

    Thanks, Frans

  • Frans de Jong 548 posts 1840 karma points MVP 4x c-trib
    Feb 02, 2018 @ 12:00
    Frans de Jong
    102

    That moment you post a question after half a day looking around and finding the answer withing a hour after posting:

    protected override TreeNode CreateRootNode(FormDataCollection queryStrings)
    {
        TreeNode rootNode = base.CreateRootNode(queryStrings);
        rootNode.MenuUrl = null;
        return rootNode;
    }
    
Please Sign in or register to post replies

Write your reply to:

Draft