Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 6th, 2012  |  syntax: None  |  size: 0.51 KB  |  views: 40  |  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. how to open jqgrid add form when click on the custom button of jqgrid?
  2. $("#jqgUsers").navGrid('#jqgpUsers', { edit: false, add: false, del: false, search: false })
  3.         .navButtonAdd('#jqgpUsers', {
  4.             caption: "",            
  5.         buttonicon: "ui-icon-plus",
  6.         onClickButton: function () {
  7.             alert("Adding Row");
  8.         },
  9.         position: "last"
  10.     });
  11.        
  12. $(this).jqGrid("editGridRow", "new");
  13.        
  14. $(this).jqGrid("editGridRow", "new", {recreateForm: true, closeAfterAdd: true});