1
Help for ParamQuery Pro / Re: Select row using the keyboard
« on: March 29, 2018, 02:25:23 am »
Thank you very much, it worked!
I ended up with the following code:
Regards and congratulations for this great grid!
I ended up with the following code:
Code: [Select]
cellKeyDown: function(evt, ui) {
var sr = this.SelectRow();
var currentIndx = ui.rowIndx;
if (evt.keyCode == $.ui.keyCode.DOWN) {
if (currentIndx + 1 >= this.getData().length) {
return;
}
sr.removeAll();
sr.add({ rowIndx: ui.rowIndx + 1 });
} else if (evt.keyCode == $.ui.keyCode.UP) {
if (currentIndx == 0) {
return;
}
sr.removeAll();
sr.add({ rowIndx: ui.rowIndx - 1 });
}
},
Regards and congratulations for this great grid!