Advertisement
Guest User

Untitled

a guest
Jun 6th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  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});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement