free jqgrid top toolbar contains lot of buttons, select element and pager without last page button. Buttons are wrapped to multiple lines. Central part is removed using
#grid_toppager_center {
width: 0;
}
Since pager is in right area, there is lot of unused empty space below and after pager:
I tried to remove empty space using
#grid_toppager_center, #grid_toppager_right {
width: 0;
}
and
pagerpos: 'left',
In this case pager appears in top of toolbar buttons:
How to place pager to other place, for example to end of top toolbar ?
jqgrid settings:
$.extend($.jgrid.defaults, {
iconSet: "fontAwesome" ,
autoResizing: { compact: true,widthOfVisiblePartOfSortIcon: 13 },
toppager: true,
viewrecords: false,
pagerpos: 'left',
rowList: [50, 500, 1000],
rowNum: 50,
style:
#grid_toppager_center, #grid_toppager_right {
width: 0;
}
.ui-pg-button-text {
margin: 4px !important;
}
.ui-jqgrid .ui-jqgrid-toppager .ui-pg-div > span {
margin: 0 5px;
font-size: 20px;
}
.ui-jqgrid .ui-pg-table .ui-pg-button.ui-state-active {
margin: 1px;
font-weight: normal;
}
Update
I tried demo from
http://www.ok-soft-gmbh.com/jqGrid/OK/tougleButton1_iconOver2.htm
and decreased jqgrid width.
Empty space still appears:
How to put buttons to this area so that they use whole grid width and wrap as many lines as nessecary ? After buttons where should be pager.
Desired is compact toolbar occupying as few rows as possible (two last buttons removed in this sample):