Hide column

QuestionsHide column
Francesco asked 1 year ago

how can I hide a column without having to declare them all?


1 Answers
Abu Ghufran Staff answered 1 year ago

Pasting from docs:

If you want to customize any specific column properties, and let other columns be displayed from table definition, you can pass 2nd argument of set_columns($cols,true) to true.

$col = array();
$col["name"] = "company";
$col["edittype"] = "textarea";
$cols[] = $col;


Only column with name ‘company’ will be changed to textarea and rest table column will be displayed as they were before.

Abu Ghufran - Dev Team
Grid 4 PHP Framework
Your Answer

2 + 9 =

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?