your answer helps me a lot and directs me to the right solution, although I spent more than 3 hours writing the correct code, but I succeeded :)
Many thanks.
summarize:
i defined 2 variables:
var selICol; //iCol of selected cell var selIRow; //iRow of selected cell
i set them to beforeEditCell events:
beforeEditCell : function(rowid, cellname, value, iRow, iCol) { selICol = iCol; selIRow = iRow; },
and then in editoptions for both editable cells that I set:
first editable cell in a row (Inventรบrny stav in the picture), tab behavior, click to select the next editable cell, by default
editoptions: { dataInit : function (elem) { $(elem).focus(function(){ this.select();}) }, dataEvents: [ { type: 'keydown', fn: function(e) { var key = e.charCode || e.keyCode; if (key == 13)
second editable cell in the row (Sklad. cena in the picture) - I manually set iCol for the next editable cell in the next row
editoptions: { dataInit : function (elem) { $(elem).focus(function(){ this.select();}) }, dataEvents: [ { type: 'keydown', fn: function(e) { var key = e.charCode || e.keyCode; if(key == 9)
kajo
source share