Remove search all columns and filter button

QuestionsRemove search all columns and filter button
Rangyr asked 4 years ago

I would like completely to remove/hide all buttonsand search field from the grid. Is this ever possible? The code below remove buttons, but cannot remove “search” and “filter” functions (icons).

$g->set_actions(array(
“add”=>false,
“edit”=>false,
“delete”=>false,
“view”=>false,
“rowactions”=>false,
“export”=>false,
“autofilter”=>false,
“refresh” => false,
“search”=>false,
“filter”=>false,
)
);

 

2 Answers
Rangyr answered 4 years ago

OK, found it myself, can be usefull for somebory, because documentation is not that clear. Setup is not in parameters, but in CSS.

.ui-jqgrid-pager,.ui-jqgrid-toppager { display: none; }

Abu answered 4 years ago

Yes, that’s ok.

If you wish to remove both toolbars, set:

.ui-jqgrid .ui-pager-control {
display: none;
}

Your Answer

13 + 12 =

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?