Would like to remove "header and footer" from a sub grid

QuestionsWould like to remove "header and footer" from a sub grid
Tim Moore asked 3 months ago

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

View post on imgur.com

Thanks in advance.

Tim

1 Answers
Abu Ghufran Staff answered 3 months ago

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
                    )
                );

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

0 + 3 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?