tonytomov / jqGrid

jQuery grid plugin
www.trirand.com
2.85k stars 1.2k forks source link

setFrozenColumns and bindKeys #911

Closed MonkSoul closed 6 years ago

MonkSoul commented 6 years ago

This is my code:

tableGrid.jqGrid("setFrozenColumns");
tableGrid.jqGrid('bindKeys');

I try use the up key to switch row, over and over again ,but it's don't working. if i don't use tableGrid.jqGrid("setFrozenColumns");,that is right.

tonytomov commented 6 years ago

Hello,

This work (with small exceptions) Remember when using FrozenColumns, this method should be called as last one if you have other methods. This to work you should

tableGrid.jqGrid('bindKeys');
tableGrid.jqGrid("setFrozenColumns");

I have made some small fix to work this better when frozen columns are on. See here: https://github.com/tonytomov/jqGrid/commit/c1806f857d419572e9f12b9c38c0f596c77b3583