Hi,
How can we catch the Return Key or the Escape Key with the BeforeCellKeyDown event in a FDBGrid ?
Thank you
Attached to this message is a simple testcase.
UniGUI: 1.90.0.1513
EnterKeyDown_ToSend.rar
It works ! Thanks.
function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) {
var grid = sender;
for (var i = 0; i < columns.length; i++) {
if (columns[i].getEditor()) {
columns[i].getEditor().on('specialkey', function(field, e) {
if (e.getKey() == 13) {
ajaxRequest(grid, "BeforeCellKeyDown", ["keycode=13"], false);
return e.keyCode;
}
})
}
}
}