Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

enter image description here

like image 984
Yara Avatar asked Jan 24 '26 21:01

Yara


2 Answers

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.

like image 115
Oleg Avatar answered Jan 26 '26 11:01

Oleg


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},{},{},{});
like image 34
Raghbendra Nayak Avatar answered Jan 26 '26 09:01

Raghbendra Nayak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!