Top toolbar pagination not working

QuestionsTop toolbar pagination not working
pcattani asked 1 year ago

Hi all.  I am trying to get the pagination controls and record count (e.g. View 101 – 200 of 439) appear on the top toolbar but I’m not having any success.

 

Yes, I’ve managed to get the toolbar to also appear at the top using

$opt[“toolbar”] = “both”;

 

I tried using:

$opt[“toppager”] = true;

 

But it just doesn’t appear.

 

I used the Browser console and found the page had ui-state-disabled.  I also managed to display the record count by changing CSS:

.ui-jqgrid #datatable_toppager > div > table:nth-child(1) > tbody > tr > td:nth-child(3) {
display: block;
}

 

I thought global search was interfering, so I also did:

$opt[“globalsearch”] = false;

 

But that didn’t help.  Any ideas how to make pagination appear in the top toolbar?

 

Thanks.

3 Answers
pcatt answered 1 year ago

Abu?  Anyone?  Anyone have any hints or ideas I could look at?

Thanks

Abu Ghufran Staff answered 11 months ago

Hi,

Here is the demo code.

https://gist.github.com/gridphp/e2232c0052f2f34de3b785f1e21598c7
Line 28,29 and 51,52

Screenshot:

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
pcatt answered 11 months ago

Thanks Abu!  That does work.  Unfortunately, it’s doesn’t seem possible to show both the pagination and record count areas on both the top and bottom toolbars simultaneously, but my client asked specifically for the those two to appear at the top, so they should be happy.

 

 

Your Answer

20 + 4 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?