View Full Version : RowEditor with default values does not Submit

28 Oct 2011, 10:12 AM
My grid has a Ext.ux.grid.RowEditor.
When the editor opens up on "Add new row", its fields are prepoulated with default values.
If I click 'Submit', nothing happens but if I change one of the values and then Submit, it works.
How can I make it submit(call the saveTime function) the default values??

new Ext.grid.GridPanel({
store: timesDataStore,
cm: timesColModel,
clicksToEdit: 1,
selModel: new Ext.grid.RowSelectionModel({
singleSelect: true
plugins: [editor],
loadMask: {
msg: 'Loading data ...'
tbar: [{
itemId: 'tbarAddBtn',
text: 'Add',
iconCls: 'add',
// this is defined in our styles.css
handler: function () {
var e = new times({
start_time: '00:00',
end_time: '23:59'
timesDataStore.insert(0, e);
editor.on('afteredit', saveTime);