3

I want to change default pagination of jqgrid. I want the pagination as given below

1 2 3 4 5.. Next

Is it supported by default? How can i achieve that?

Thanks,

Tepu
  • 1,602
  • 2
  • 20
  • 28
  • 1
    Look at [the answer](http://stackoverflow.com/questions/5800400/add-numeric-pager-to-jqgrid/5835542#5835542). Is it what you want? – Oleg Aug 16 '11 at 08:32
  • exact dup http://stackoverflow.com/questions/5800400/add-numeric-pager-to-jqgrid?lq=1 – mcabral Oct 05 '12 at 13:23

2 Answers2

2

On the wiki it says you can create your own custom pager, you might take a look at this -> http://www.trirand.com/jqgridwiki/doku.php?id=wiki:pager

daanl
  • 44
  • 2
  • 14
  • Well sound like its not flexible enough to customize it...Did anybody do that? – Tepu Aug 16 '11 at 08:26
  • Did you read the article? below theres an sections about customization, you customize the whole pager just how you want it. – daanl Aug 16 '11 at 08:59
  • I read it but it doesnt address the thing i am looking for. You can only set the default paging text etc. – Tepu Aug 18 '11 at 05:46
  • you mean the urls or what? You can configure the pager completly with javascript – daanl Aug 21 '11 at 17:02
0

I'm trying to do exactly same thing you want. sad to tell, the structure is hard coded. you have to rewrite the setPager() function by modifying the jqgrid source code. I mean it can't be down by overwrite some function.

Luca
  • 9,259
  • 5
  • 46
  • 59
weilei
  • 1