Just fyi, wrapping setRegional in a setTimeout did not work for us, which is why we had to change the order. Your mileage may vary.
Here you go. It is identical to the example I gave before except I added a call to setRegional after setting up the pager. You can see that it no longer has the search button.
Hi,
I followed your advice and stepped through the jqgrid code in the debugger. As it turns out the problem was a call to setRegional that was somehow resetting the pager via a call to setPager.
I first noticed that following the initial call to setPager then navGrid, the buttons would be created and inserted correctly. Then later on in our setup code we were calling setRegional for localization purposes. This has the effect of calling setPager again and completely resetting the pager setup. That feels like a bug, or at least unexpected behavior that should be documented. We fixed the problem by moving the setRegional call before setting up the grid and pager.
Just to provide some background, we are using the following:
The versions of jquery and jquery-ui are the only differences I can see between our app and the snippet given above (we just basically used the same dependencies as you used in your demo link above for the jsfiddle).
Hi,
Setting search and refresh to true does not help – the buttons are still not displayed.
However when I copied the relevant code from our application (it is internal so not easily shared) in jsfiddle it works. It’s literally identical code just lifted from our application word for word. Could you have a look at the jsfiddle and see what could have potentially gone wrong? Everything else works and looks identical to what you see in the jsfiddle except that the search and refresh buttons are missing (in fact the entire grid_0_pager_left is empty).
Here is an image of how the same grid looks in our app.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top