PDA

View Full Version : is an editable treegrid possible?



gideondsouza
10 Feb 2012, 12:38 AM
There is the cell editing in grid example over here (http://dev.sencha.com/deploy/ext-4.0.0/examples/grid/cell-editing.html), and the TreeGrid example here (http://dev.sencha.com/deploy/ext-4.0.0/examples/tree/treegrid.html).

Now I want that editable/add functionality, where one can add/edit in place, I want this functionality in the TreeGrid . Something like the TreeGrid examples here (these are for Ext GWT)
(http://gxtexamplegallery.appspot.com/)
So first off, is it possible? I noticed that Ext.grid.Panel has plugin for cell editing but Ext.tree.Panel doesn't have any plugin.

Is there an alternative, or any other solution? Could point me to where I would start?

Thanks so much
-Gideon

mitchellsimoens
10 Feb 2012, 4:30 AM
The tree and grid share a common superclass so I have seen people try using the grid cell editor but haven't heard of any success.

alphadogg
20 Jul 2012, 10:43 AM
Would like to know the same. Can an Ext.tree.Panel be made an editable grid with the existing ExtJS4.1 library, or with a little additional code?

Adding Ext.grid.plugin.CellEditingView does not seem to work.

el_chief
20 Jul 2012, 4:05 PM
In what way does it not work? Are you using 4.07?

Here it is, working:

http://jsfiddle.net/el_chief/FjWZk/2/