How to Raise the OnNodeEdit Event from Code Behind?

2 posts, 0 answers
  1. Eric
    Eric avatar
    37 posts
    Member since:
    Aug 2012

    Posted 20 Feb 2013 Link to this post

    Hello,

    I have this situation, when the user creates a new node, a new node is added with a random name, the problem is that I only save the new node in the OnNodeEdit Event so if the user doesn't change the name of the newly created node and leaves the random name unchanged the OnNodeEdit event is not executed, is there a way to raise the OnNodeEdit event from code behind?

    Thank you.
  2. MasterChiefMasterChef
    MasterChiefMasterChef avatar
    152 posts
    Member since:
    Jan 2013

    Posted 20 Feb 2013 Link to this post

    Hi Eric,

    I'm guessing you're using the 'NodeCreated' event to initialize the node's name. Even if the user doesn't change the name, couldn't you just save the node inside the NodeCreated event as opposed to during the NodeEdit event? This may make more sense because not every user will immediately change the default title of the node.

    Hopefully this helps,
    Master Chief
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top