Search code examples
jqueryjqgridsubgrid

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


Solution

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