Autocomplete up-down key navigation in JqGrid -


I found JqGrid with modified cell edit (full-up-down-left-right cell navigation).

Here is the fragment of jqgrid.src:

  if (e.keycode === 37) {if (! $ T.grid.hDiv.loading) {{ $ ($ T) .jqGrid ("PRECEL", IRO, ICL);} // left} and {return false; }} If (e.keycode === 39) {if (! $ T.grid.hDiv.loading) {{$ ($ t) .jqGrid ("Next cell", IROO, IOCL);} right-right} and { return false; }} If (e.keycode === 38) {if (! $ T.grid.hDiv.loading) {{$ ($ t) .jqGrid ("prevro", iRow, iCol);} // above} else { return false; }} If (e.ccode === 40) {if (! $ T.grid.hDiv.loading) {{$ ($ t) .jqGrid ("nextRow", iRow, iCol);} // below} and { return false; }}   

and other

  next cell: function (iRow, iCol) {return.Each (function () {var $ t = this, nCol = Incorrect, i; if (! $ T.grid || $ tpcellEdit! == true) {return;} // Try to find the next editable cell (i = iCol + 1; i  = 0; i--) tries to search for {if ($ tpcol model [i]. Correct == = True) {NCol = i; break;}} if (nCol! == false) {$ ($ t) .jqGrid ( "editCell", iRow, nCol, true);} and {if ($ tpsavedRow.length & gt; 0) {$ ($ T) .jqGrid ( "saveCell", iRow, iCol)}}}});}, NextRow: function (iRow, iCol) {return.Each (function () {var $ t = This, nCol = false, i; if (! $ T.grid || $ tpcellEdit! == true) {return;} // Next editable cell iRo ++; ICol ++; Try to find (i = iCol-1; i & gt; = 0; i--) {if ($ tpcol model [i] .editable === true} {nCol = I; Break;}} if (nCol! == incorrect) {$ ($ t) .jqGrid ("editCell", iRow, nCol, true);} and {if ($ tpsavedRow.length & gt; 0) {$ ($ T) .jqGrid ("saveCell", iRow, iCol);}}}); }   

In addition to that I have got the complete task with the JqGrid event after the Actisel:

  getautocompl = function (line, cellname, value, IRow, iCol) {setTimeout (function () {$ ("#" + IRow + "_" + cell name). Selection (). Focus ();}, 10); If (cellname! == 'date_factory'] cellname! == 'date_otgr_factory' || Selam! == 'Tithi_shipn' || Selam! == 'Det_sclad' || Selam! == 'Kolnkr' || Selam! =! = 'Kolkakore' || Selogman! == 'Cole quentai' || Selam! == 'Description') {$ ("#" + iRow + "_" + cell name). Autocomplete ({source: "../../ Phpmon / autocomplete.php? Fname =" + cell name, delay: 250, Minleamth: 2}); The problem here is that I can not manage  autocomplete  hotkeys to work when I click "down" Pressing the button, it just goes to the next cell, instead of any auto-complete option.  

You can press jqgrid navigation with auto-complete element visible. Like something:

  $ (document) .keydown (function (fn) {var key = fn.keyCode; if ($ ("#autocomplete") & amp; amp; Amp; amp; amp; key == 40) / * your completed action * /});    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -