Welcome Guest Search | Active Topics | Sign In | Register

Activate node renaming from client side script Options
Joe Roberts
Posted: Wednesday, October 3, 2012 2:25:13 AM
Rank: Member
Groups: Member

Joined: 5/12/2012
Posts: 11
I have a context menu that I would like to have an "Edit" menu item that will allow the user to change the text. How do I activate the text box from javascript?
eo_support
Posted: Wednesday, October 3, 2012 12:54:25 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Inside your context menu ClientSideOnItemClick handler, you would need to call this method to get the "context node" (the node that user right clicked on):

http://essentialobjects.com/doc/1/jsdoc.public.treeview.getcontextnode.aspx

Once you have the node, you can call this method to put the node into edit mode:

http://essentialobjects.com/doc/1/jsdoc.public.treenode.beginedit.aspx

Hope this helps. Please feel free to let us know if you still have any questions.

Thanks!
Joe Roberts
Posted: Monday, October 8, 2012 1:44:21 PM
Rank: Member
Groups: Member

Joined: 5/12/2012
Posts: 11
Thank you, this was very helpful!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.