tags:

views:

21

answers:

2

Does anyone know how to disable the "reload grid" button (a.k.a. the "refresh" button) in the grid navigation?

alt text

I'd like to remove the button circled in red above. Seems pretty simple but I'm just not finding the necessary code to support the request.

A: 

Realized by accident that none of the navigation buttons, including the "Reload Grid" button, appear if you omit the $("#list").jqGrid('navGrid', '#pager', ...) call.

gurun8
A: 

You should use refresh:false paremeer of the navigator (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:navigator):

$("#list").jqGrid('navGrid', '#pager',
    { edit: false, add: false, del: false, search: false, refresh:false });
Oleg
Thanks Oleg. That seems so simple. I just didn't try the refresh: false in the nav parameters. Don't know why.
gurun8