jimitndiaye

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • in reply to: Search/refresh buttons missing from pager #126425
    jimitndiaye
    Participant

    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.

    in reply to: Search/refresh buttons missing from pager #126421
    jimitndiaye
    Participant

    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.

    in reply to: Search/refresh buttons missing from pager #126418
    jimitndiaye
    Participant

    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.

    • This reply was modified 7 years, 3 months ago by jimitndiaye.
    in reply to: Search/refresh buttons missing from pager #126414
    jimitndiaye
    Participant

    Just to provide some background, we are using the following:

    • jquery v3.2.1
    • jquery-ui v1.12.1
    • jqgrid v5.2.1

    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).

    in reply to: Search/refresh buttons missing from pager #126412
    jimitndiaye
    Participant

    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.

    • This reply was modified 7 years, 3 months ago by jimitndiaye.
Viewing 5 replies - 1 through 5 (of 5 total)

Stay connected with us in your favorite flavor!