Hello,
I have the grid setup and running. It seems though that in order to save newly entered data in the cell the user has to either hit either the "tab" key or the "enter" key. This however is not so intuitive for the last cell. Last cell in my grid is shipping date with date editor. Users simply select a date and hit save resulting in validation error that says that Shipping date is required (attachment shows this situation).
I've tried the following on the shipping date column:
editModel: { keyUpDown: false, onBlur: 'save', saveKey: '' }
editModel: { keyUpDown: false, saveKey: '' }
editModel: { keyUpDown: false, onBlur: 'save'}
Which failed to work and so I tried the following (which didn't work either):
grid.on("pqgridquiteditmode", function (evt, ui) {
//exclude esc and tab
if (evt.keyCode != $.ui.keyCode.ESCAPE && evt.keyCode != $.ui.keyCode.TAB) {
grid.pqGrid("saveEditCell");
}
});
In general is it possible to save data to a cell when it loses focus?
Thanks