fields with text 'Id' in name have width issue

Questionsfields with text 'Id' in name have width issue
Santosh Pillai asked 3 years ago

I am using a grid where I using a select command and not specifying the columns in the code

The grid displays find, however any field with ‘Id’ in fieldname gets automatically narrow. Can you please help

$g->select_command = “SELECT * FROM myTable”;

1 Answers
Abu Ghufran Staff answered 3 years ago

You can override that particular column width by following. You don’t need to define all columns when setting set_columns second param to true..

$cols = array();

$col = array();
$col["name"] = "id";
$col["width"] = "150";
$cols[] = $col;

$g->set_columns($cols,true);
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

15 + 6 =

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?