How can I remove 'Search' and 'Update' buttons from subgrid of jqGrid?

6k views Asked by At

I am looking for jqGrid option that can hide 'Search' and 'Update' buttons of subgrid. (Marked in red circle)

enter image description here

2

There are 2 answers

2
Oleg On BEST ANSWER

I suppose you use subgrid as grid feature of jqGrid. See on the demo example under "Advanced"/"Subgrid as Grid".

Inside of subGridRowExpanded you create explicitly new grid (as subgrid) and can optionally create navigator buttons with the line like

$("#" + subgrid_table_id).jqGrid('navGrid',
    "#" + pager_id, {edit: false, add: false, del: false});

So you should just remove the line or add additional options search: false and refresh: false.

0
Raghbendra Nayak On

You can use:

<table id="grid"></table>
<div id="pagination" ></div>
jQuery("#grid").jqGrid('navGrid','#pagination',{del:false,add:false,edit:false,search: false, refresh: false},{},{},{});