Copied to clipboard

Flag this post as spam?

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


  • npanguuluri 30 posts 57 karma points
    Apr 07, 2010 @ 21:12
    npanguuluri
    0

    Clear Menu actions of Root Node on the custom section

    HI all,

    I created  a custom section page and I need to disable the "create" and "reload" nodes that appear when we right click on the Root Node.

    I used

    rootNode.Menu.Clear();

    but its not disabling.. but the same works on the tree nodes. Is there anything i need to code for this to happen?

     

    Thanks

    Narendranath

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Apr 07, 2010 @ 22:09
    Dirk De Grave
    0

    Have noticed that as well, didn't really look for the cause, just found a workaround by overriding the CreateRootNode() method and using:

     

    RootNodeActions.Clear();

    RootNodeActions.AddRange(new List<IAction>() {ActionRefresh.Instance});

     

    Hope this helps.

    Regards,

    /Dirk

  • npanguuluri 30 posts 57 karma points
    Apr 08, 2010 @ 03:04
    npanguuluri
    0

    Excellent!! that worked Dirk

     

    Thanks

    Naren

  • Fabio Blardone 79 posts 98 karma points
    Aug 03, 2011 @ 12:11
    Fabio Blardone
    0

    Hello,

    i try to do this but not work in my custom tree. :( Any suggestion?

    Umbraco 4.7.0. on sql server 2008 windows server 2008 .NET 4

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft