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
228
Way to make parent editable, but leaf not?
posted

Hello,

 I have created a UltraWebTree (2008 V3) that is bound to a datasource.  I would like the parent item to be editable, but the leaf not editable.

Right now, I'm capturing the AfterNodeUpdate() client side event to change the leaf back to what I saved on the NodeClick() client side event.

While that prevents the user from changing a group item's name, it would be nice to be able to not have the edit box activate in the first place; while still letting them change the group name.

Is there a way to control which node items are editable on the server, when it's being bound to the datasource?

 Thanks.

Parents
  • 510
    Verified Answer
    Offline posted

     Not sure if this will totally help you or not, as I needed to turn off edit capability for all nodes, but I did so with the following client side snippet:

            // turn off edit capability of tree
            function igtree_beginedit(tn,nodeId)
            {     
                //custom logic here   
                return false;      
            }


    Perhaps you can tweak to only call this on the nodes you need to "turn off".

    Good luck,

    Dan

Reply Children
No Data