Copied to clipboard

Flag this post as spam?

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


  • Nigel Wilson 939 posts 2061 karma points
    Aug 19, 2016 @ 03:32
    Nigel Wilson
    0

    Disable Create and Delete

    Hey Tim - this package is simply AWESOME - nice work...

    Just wondering if there's a way to disable just C & D of CRUD ?

    I note you can disable all editing but in my case, I am happy for admins to edit...

    Am happy to dig into code, but thought I'd ask here first (it's been a long week).

    Look forward to hearing from you.

    Cheers

    Nigel

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Aug 19, 2016 @ 06:52
    Tim Geyssens
    100

    Hi Nigel, yeah you'll need to dig into the code for that, there's only a readonly setting you can set currently (on the uiomatic attribute) https://github.com/TimGeyssens/UIOMatic/blob/master/src/UIOMatic/Attributes/UIOMaticAttribute.cs

    You'll see that in the tree code it checks for this attribute value and then adds the create/delete depending on that https://github.com/TimGeyssens/UIOMatic/blob/master/src/UIOMatic/Trees/UIOMaticTreeController.cs

  • Nigel Wilson 939 posts 2061 karma points
    Aug 19, 2016 @ 19:01
    Nigel Wilson
    0

    Thanks Tim - will have a play around with this and see what I can break. :-)

    Cheers

    Nigel

  • EV 36 posts 146 karma points
    Aug 23, 2019 @ 10:42
    EV
    0

    Hi! If you found out how to do this, can you please share it? Thanks a ton in advance!

  • 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