PDA

View Full Version : Editing a treenode inline



smartlit
22 Apr 2008, 2:24 AM
Hello,

I have a tree; I'd like to allow users to edit the text of a node when they double click a node. How can I achieve that? I know how to listen to the doubleclick event, but how can I show a textbox?

In the forum I read something about inline editors but it was a post dated mid-2007 and said that it was a deprecated method...

Thanks.

Animal
22 Apr 2008, 2:55 AM
http://dev.extjs.com/deploy/dev/docs/?class=Ext.tree.TreeEditor

smartlit
22 Apr 2008, 4:47 AM
Thanks!

smartlit
22 Apr 2008, 12:20 PM
I followed the instructions however I found something I think it may be a bug. It can be reproduced even in an application that is not mine, but http://filetree.extjs.eu. Go to that URL and right-click on Tree Root and choose Expand All. After expanding, right-click on Tree Root and choose New Folder.

As you can see, the in-line editor is displayed at the bottom of the window, outside the tree.
Thanks,

Paul

jsakalos
22 Apr 2008, 3:19 PM
Looks like scroll into view is on different element... I'll take a look at it soon.

dbassett74
26 May 2009, 2:40 PM
A year later... Is it fixed now?

jsakalos
27 May 2009, 12:03 AM
Many bugs have been fixed since 2.0. Upgrade your Ext and try.