I use ExtJS 4.2.2 version.
I create RowEditing
rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
clicksToEdit : 2,
clicksToMoveEditor : 1,
autoCancel : false,
errorSummary : false,
listeners : {
edit : function(editor, e, opt) {
// ... some code ...
}
}
});
and then use it on panel:
tGrid = Ext.create('Ext.tree.Panel', {
title : 'title',
rootVisible : false,
store : tStore,
plugins : [ rowEditing ],
columns : this.defineColumns()
});
this.defineColumns = function() {
return [ {
text : 'smth',
xtype : 'treecolumn',
dataIndex : 'name',
width : 300,
editor : {}
}];
};
So when i change some data with using of rowEditing and then change row, all my changes drops. I want to refuse changing position of row under edit, without permission. Or at least auto save changes of data with row change. Can't find a way to do it.
false
(as done in your code) already provide that functionality? It seems to work in the Row Editing example – matt