$grid[“globalsearch”] = false;
$grid[“pgbuttons”] = false;
$grid[“ogtext”] = false;
$grid[“hiddengrid”] = false;
$grid[“toppager”] = false;
Don’t know if any of the above are working?
I would like to remove the “header” and “footer” from a subgrid, but can’t find a way to do it?
all above is applied, but still see this.
Thanks in advance.
Tim
Hello,
To remove the caption row, set grid caption property to blank.
$opt[“caption”] = “”;
To remove the toolbars in subgrid, add following css in style tag after include the css files – where list1 is grid id of parent.
.ui-jqgrid[id^=gbox_list1_] .ui-pager-control { display: none; }
To remove the column labels,
.ui-jqgrid[id^=gbox_list1_] .ui-jqgrid-labels { display: none; }
To remove the search filters, set autofilter to false. e.g.
$g->set_actions(array(
“add”=>false, // allow/disallow add
“edit”=>true, // allow/disallow edit
“delete”=>false, // allow/disallow delete
“rowactions”=>true, // show/hide row wise edit/del/save option
“autofilter” => false, // show/hide autofilter for search
)
);