-
28 Nov 2011 12:10 AM #1
Unanswered: ExtJS inline tree editing
Unanswered: ExtJS inline tree editing
Hi team,
i am using extjs4, and i am not able to find any way to do some inline editing of my tree using Ext.tree.TreeEditor class(which is not included in EXTJS4).
Can anyone help me quickly to understand the process to implement such functionality in my application.
All i want is to edit a tree leaf using inline editing and updating my database as per the changes done in inline edit mode on leaf.
Regards
UT
-
28 Nov 2011 6:46 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,118
- Vote Rating
- 453
- Answers
- 3160
Where did you get Ext.tree.TreeEditor?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
28 Nov 2011 6:51 AM #3Sencha - Services Team
- Join Date
- May 2007
- Location
- Munich (Germany)
- Posts
- 2,305
- Vote Rating
- 7
- Answers
- 58
probably this one:
http://www.sencha.com/forum/showthre...eleases-native
in case of yes, i would ask your question directly in the topic of the UX, since it is related to it.
-
28 Nov 2011 7:30 AM #4
Ext.tree.TreeEditor() was shipped in EXTJS ver 3.0 however it is missing from EXTJS4.0 now.
I have tried using Ext.Editor() to convert any element into editable textfield, i was successful to edit available Div section on the page. however i now i need to know the method using which i can implement it on tree leaf
i.e. if i doubleclick on any leaf of the tree it should convert in editable text-field, and i should be able to change and save the text of it using my webservice.
Please let me know if EXTJS provides such activities to be performed on treepanel
-
28 Nov 2011 7:35 AM #5
-
30 Nov 2011 2:37 AM #6
I use grid edit cell plugin
I use grid edit cell plugin
I use grid edit cell plugin
and then in column definition writePHP Code:var cellEditing = Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit: 1
});
Ext.grid.plugin.Editing.override({
getEditingContext: function(record, columnHeader) {
var me = this,
grid = me.grid,
store = grid.store,
rowIdx,
colIdx,
view = grid.getView(),
value;
if (Ext.isNumber(record)) {
rowIdx = record;
record = store.getAt(rowIdx);
} else {
if (store.indexOf) {
rowIdx = store.indexOf(record);
} else {
if (columnHeader.ownerCt.lockableInjected) {
if (columnHeader.locked) {
rowIdx = view.lockedView.indexOf(view.lockedView.getNode(record));
} else {
rowIdx = view.normalView.indexOf(view.normalView.getNode(record));
}
} else {
rowIdx = view.indexOf(view.getNode(record));
}
}
}
if (Ext.isNumber(columnHeader)) {
colIdx = columnHeader;
columnHeader = grid.headerCt.getHeaderAtIndex(colIdx);
} else {
colIdx = columnHeader.getIndex();
}
value = record.get(columnHeader.dataIndex);
return {
grid: grid,
record: record,
field: columnHeader.dataIndex,
value: value,
row: view.getNode(rowIdx),
column: columnHeader,
rowIdx: rowIdx,
colIdx: colIdx
};
}
});
PHP Code:{
text: 'Planned Date',
dataIndex: 'col5',
width: 70,
sortable: false,
renderer: Ext.util.Format.dateRenderer('d-M-Y'),
editor: {
xtype: 'datefield',
format: 'd-M-Y'
}
}
-
24 May 2013 2:19 AM #7
Tree Grid with ComboBox
Tree Grid with ComboBox
Is there way to create inline combo box renderer in tree column some thing like this
tree column.jpg
i need renderer only. not the editor one available in tree column.


Reply With Quote