I have a grid with more than 15 fields. I would like to see a sample of how to set the width of two or three columns so I can do them all.
Thank you much.
$col["width"] will set width of a column.
Refer documentation "Customizing Columns of Grid".
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";
$col["width"] = "200";
$cols = $col;
custommizing columns of grid.
i am using the below code to display column title name as 2 lines, BUT
the column height is not adjusting to accomodate multiple lines within a column thus only first text of title displays.
how to adjust text display of column title names as 1 line on both ADD & EDIT forms
the spacing and formating of text column title names overlay field names.
$col["title"] = "Contract<br> Type";
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?