i have added pager:"#pager" but now i don't think that i need paging so i just need a add button(+), son can anybody tell me how to set paging false without removing the whole bar..just remove pagging
grid.jqGrid('navGrid', '#pager',
{ resize: false, add: false, search: false, del: false, refresh: false, edit: false, alerttext: 'Please select one user' }
).jqGrid('navButtonAdd', '#pager',
{ title: "Add New users", buttonicon: "ui-icon ui-icon-plus", onClickButton: showNewUsersModal, position: "First", caption: "" });
Read this : pager properties.
You have to set pgbuttons, pginput to false to do what you want.
grid = $("#your_table").jqGrid({
// all your options
pgbuttons : false,
viewrecords : false,
pgtext : "",
pginput : false
});
grid.jqGrid('navGrid', '#pager',
{ resize: false, add: false, search: false, del: false, refresh: false, edit: false, alerttext: 'Please select one user' }
).jqGrid('navButtonAdd', '#pager',
{ title: "Add New users", buttonicon: "ui-icon ui-icon-plus", onClickButton: showNewUsersModal, position: "First", caption: "" });
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With