1

when using jqgrid, I see i can add the pager to the top by doing this:

    toppager: true,

which works great, but i wanted to see if i can align this to the left of that row instead of putting it in the center. Is this possible ?

leora
  • 188,729
  • 360
  • 878
  • 1,366
  • which exactly components of [the pager](http://www.trirand.com/jqgridwiki/lib/exe/detail.php?id=wiki%3Apager&media=wiki:pager.png) you will have in the toppager on the left? – Oleg Sep 01 '11 at 20:37
  • @Oleg - the whole section that is in the middle now that shows Page X of Y and also shows the dropdown of number of items per page. – leora Sep 01 '11 at 20:43
  • Do you want to set two pager: one at the bottom and another on the top or only one pager on the top. – Oleg Sep 01 '11 at 20:51

1 Answers1

2

To place the pager element left top which is per default at the top center you should just hide the div which is on the top left position.

$('#' + grid[0].id + '_toppager_left').hide();

where var grid = $('#list') for example. See the demo:

enter image description here

Another old answer describes how you can move different pager elements between the top and the bottom pager. The answer gives some more general information about the pagers.

Community
  • 1
  • 1
Oleg
  • 220,925
  • 34
  • 403
  • 798