Using Tab or Shift+Tab one will be able to move the cursor to next right cell or next left cell. What if one wants to move it up and down? Here is what I do:
Given F7 and F8 (available function keys) ability of moving the cousor down and up by adding code (following)
k118_0_0:function(){ //F7 key
this._key_events.k40_0_0.apply(this,[]);
this._key_events.k9_0_1.apply(this,[]);
this._key_events.k9_0_0.apply(this,[]);
},
k119_0_0:function(){ //F8 key
this._key_events.k38_0_0.apply(this,[]);
this._key_events.k9_0_1.apply(this,[]);
this._key_events.k9_0_0.apply(this,[]);
},
dhtmlxgrid.js, now you will be able to do it. But there is one problem when your grid is on split mode. On that mode you can move your cousor up and dowm (using F7 and F8) on any columns BUT NOT on the FIRST column of the SPLIT LINE. Can anyone help me to solve the problem?
What is the reason of
this._key_events.k9_0_1.apply(this,[]);
this._key_events.k9_0_0.apply(this,[]);
calls usage?
Basically this is mimic tab and shift-tab keys pressing, which moves
focus next cell and back. Without them all works fine enough in split
mode.
If you need to have cell in edit state after selecting it , just use
k118_0_0=function(){ //F7 key
this._key_events.k40_0_0.apply(this,[]);
this.editCell();
}
k119_0_0=function(){ //F8 key
this._key_events.k38_0_0.apply(this,[]);
this.editCell();
}