This is a part of a very large project, so hard to share.
However I at least found the reason and workaround:
- it's caused by "saveEditCell" method.
- when I'm editing a field in the grid and I click on UP/DOWN button the button event fires before any event for the grid row, including the "quiteditcell" event.
- so if I simply follow UP/DOWN processing logic, my cell remains in "limbo" and editing is unfinished.
- so I tried to intercept this with the following piece of code:
if ($("#" + pGridId).pqGrid("getEditCell") != null) {
$("#" + pGridId).pqGrid("saveEditCell");
}
- this actually works - but still leaves the cell in some weird state that makes the data setter to work backwards.
- as soon as I commented this code everything works OK.
- of course I still have the problem of unfinished editing - so I have to ask the user to use TAB or click outside the cell to complete cell editing before using UP/DOWN or close buttons.
Any comments on this would be welcome
force