Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to set paging false in jqgrid?

Tags:

jqgrid

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: "" });
like image 889
R K Sharma Avatar asked Jan 11 '23 17:01

R K Sharma


1 Answers

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: "" });
like image 96
kmas Avatar answered Jan 22 '23 03:01

kmas