Hide row with search fields for each column

QuestionsHide row with search fields for each column
Rudolf Wagner asked 1 year ago

Hello,

I want to hide the row with search fields for each column. Can this be done by a grid option? I know there is a column option “$col[“search”] = false;”, but as I understand this has to be done for each column separately.

Kind regards, Rudolf

4 Answers
Abu Ghufran Staff answered 1 year ago

With set_actions() function, You can disable this row.

$g->set_actions(array(
“add”=>false, // allow/disallow add
“edit”=>false, // allow/disallow edit
“delete”=>false, // allow/disallow delete
“rowactions”=>false, // show/hide row wise edit/del/save option
“showhidecolumns”=>false, // show/hide row wise edit/del/save option
“export”=>true, // show/hide export to excel option
“autofilter” => false, // show/hide autofilter for search
“search” => false // show single/multi field search condition (e.g. simple or advance)
)
);

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Rudolf Wagner answered 1 year ago

Perfect! Thank you very much…

Rudolf Wagner answered 1 year ago

Hello Abu,

I was too early, sorry. Now that the row has gone the global “Search all columns…” field seems not to work properly – no results. Is there a way to fix this, or to also hide this field?

Rudolf Wagner answered 1 year ago

I could hide the field with following option

$opt[“globalsearch”] = false;

But I would like to know wether the functionality of the “Search all colums…” field could be used further.

Your Answer

17 + 20 =

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?