Entering page number in pagination doesn't work

QuestionsEntering page number in pagination doesn't work
Melissa Yip asked 6 years ago

When I enter the page number I want to navigate to in the pagination text field, nothing happens. I tried both pressing Enter key and also clicking outside of text field. It seems like the event handler is missing. The next and last buttons work fine as well as the rownum dropdown.

I’m using your demo/Search Form as an example, but I don’t see what you’re doing differently. Thanks.

View post on imgur.com

10 Answers
Abu Ghufran Staff answered 6 years ago

Perhaps, i am unable to understand or unable to generate this issue. I typed page number in textbox and pressed enter.

View post on imgur.com

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Melissa Yip answered 6 years ago

Your example works as expected, but it doesn’t work for me when I try to go from page 1 to page 2 by typing in ‘2’ and pressing Enter.

Abu Ghufran Staff answered 6 years ago

Try checking browser debug console for possible JS errors. (F12)

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Melissa Yip answered 6 years ago

After debugging in the Chrome console I noticed a discrepancy between my code and your example code. There is a keypress event handler attached to the input element that should trigger whenever a key is pressed. What I noticed is that the Enter key is triggered in your code, but not mine. Specifically, all keys pressed will trigger row 1771 in my code except the Enter key whereas your code is triggered by all keys pressed. The only difference between the two files is that I’m using 4.6.0 and you’re using 4.7.0 jqGrid. Could the version number really be the culprit? This explanation could definitely be a stretch, but this was what stood out to me while debugging.

Also, the Chrome console is clean.

Melissa Yip answered 6 years ago

Attaching screenshots

View post on imgur.com

Abu Ghufran Staff answered 6 years ago

I can’t guess what could be the issue. I also tried on Mac Sierra (Safari 10) but unable to regenerate it from website link. Is it work on website link from your machine?

http://www.phpgrid.org/demo/demos/search/search-form.php

Can you try updating jqGrid as well? Is there any special reason for not using jqGrid that is bundled with package?

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Melissa Yip answered 6 years ago

We haven’t upgraded to latest version of phpgrid(which is using 4.7.0 jqgrid) mainly because we encountered issues and don’t have the time to debug and reconcile them right now. Also, the version of jqgrid is not actually the issue. I replaced 4.6.0 with 4.7.0 in my project and the Enter key is still not triggering a page load.

Yes, this is my local development environment.

Abu Ghufran Staff answered 6 years ago

Perhaps, there are some other JS files on your page that might be causing this issue.

Can you check by commenting each of them and retest?

What if you show just grid on a separate page, do this issue occur?

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Melissa Yip answered 6 years ago

Fyi, I upgraded to version 2.6 and the issue is no longer reproducible. Thanks.

Abu Ghufran Staff answered 6 years ago

Glad to know that. Thanks for the update.

Closing it.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

12 + 16 =

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?