Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
Invoke label edit from code
posted

I have a stock tree, have the nodes set up as editable, have the save hooked up properly. This all works.

I also have a fully custom ContextMenu. I build this at runtime (I have to, because of my custom rights framework).

Is there any way to invoke editing on a node in xamDataTree? I just want to be able to say, from a context menu event handler (ooh, I don't know, from the "Edit" command in that context menu)... "start editing this node". I just want to drop it into the standard text editing mode for that node. In-place.

  • 1765
    posted

    Hello Sjoerd,

     

    I am just checking if you require any further assistance on this matter,

     

     

    Best regards,

    Anatoli Iliev

  • 1765
    posted

    Hi Sjoerd,

     A possible solution is to set editing settings as follows:

                <ig:XamDataTree.EditingSettings>

                    <ig:TreeEditingSettings AllowEditing="True" IsOnNodeActiveEditingEnabled="True" />

                </ig:XamDataTree.EditingSettings>

    After that in code behind, for example in your MenuItem.Clicked event handler you can put the code that activates a node:

                 this.igDataTree.Nodes[2].IsActive = true;

     

    Please let me know if this works for you.

    Best regards,

    Anatoli Iliev