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.
Perhaps, i am unable to understand or unable to generate this issue. I typed page number in textbox and pressed enter.
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.
Try checking browser debug console for possible JS errors. (F12)
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.
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?
Can you try updating jqGrid as well? Is there any special reason for not using jqGrid that is bundled with package?
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.
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?
How useful was this discussion?
Click on a star to rate it!
Average rating / 5. Vote count:
We are sorry that this post was not useful for you!
Let us improve this post!
Thanks for your feedback!