cancel:false,
editor: ed
};
+ var cell = Roo.get(this.view.getCell(ed.row,ed.col));
+ cell.show();
+
if(String(value) !== String(startValue)){
if(this.fireEvent("validateedit", e) !== false && !e.cancel){
this.stopEditing();
if(this.colModel.isCellEditable(col, row)){
this.view.ensureVisible(row, col, true);
- var view = this.view;
+
var r = this.dataSource.getAt(row);
var field = this.colModel.getDataIndex(col);
- var cell = Roo.get(view.getCell(row,col))
+ var cell = Roo.get(this.view.getCell(row,col));
var e = {
grid: this,
record: r,
value: r.data[field],
row: row,
column: col,
- cancel:false,
- cell : cell
+ cancel:false
};
if(this.fireEvent("beforeedit", e) !== false && !e.cancel){
this.editing = true;
}
ed.field.reset();
-
+ cell.hide();
(function(){ // complex but required for focus issues in safari, ie and opera
ed.row = row;
this.activeEditor.completeEdit();
}
this.activeEditor = null;
+ },
+
+ /**
+ * Called to get grid's drag proxy text, by default returns this.ddText.
+ * @return {String}
+ */
+ getDragDropText : function(){
+ var count = this.selModel.getSelectedCell() ? 1 : 0;
+ return String.format(this.ddText, count, count == 1 ? '' : 's');
}
+
});
\ No newline at end of file