This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 5th, 2013  |  syntax: None  |  size: 0.29 KB  |  views: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. dataEvents: [{ type: 'keydown', fn: submitRowData} ]
  2.  
  3. var submitRowData = function(e) {
  4.     var key = e.charCode || e.keyCode;
  5.     if (key == 13)//enter
  6.     {
  7.     jQuery('#grid1').jqGrid('saveRow',globalSelId,true,null,
  8.             successMsgHandler,null,null,null,saveErrHandler);
  9.     }
  10. }
clone this paste RAW Paste Data