Colluns width

QuestionsColluns width
Filipe asked 12 years ago

Hi, i have a grid with width ="750", but with several columns.
How do I adjust the column sizes configured with them?
I'm using "scroll =true" and columns are squeezed.

2 Answers
Abu Ghufran answered 12 years ago

Try changing shrinkToFit to false.

According to docs ..

This option describes the type of calculation of the initial width of each column against with the width of the grid. If the value is true and the value in width option is set then: Every column width is scaled according to the defined option width.

$grid["shrinkToFit"] = true;

Abu Ghufran answered 12 years ago

Please ignore last replies. Here is the working config.

$grid["auto_width"] = false;
$grid["shrink_to_fit"] = true;
$grid["width"] = 2000;
$g->set_options($grid);

Regards

Your Answer

7 + 18 =

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?