columns are squeezed

Questionscolumns are squeezed
santosh asked 11 years ago

Hi I am using $grid["autowidth"] = true; , all my columns are squeezed. I tried the solution in the last post but it does not work. My table has over 50 columns.

https://docs.google.com/file/d/0B0rMch-nfpzmUUlUM2tUQk1ZWTA/edit?usp=sharing

4 Answers
santosh answered 11 years ago

I would like to keep the width of the grid window auto and the width of the column as auto

Abu Ghufran answered 11 years ago

Try shrinktofit to false.

$grid["shrinkToFit"] = false;
$g->set_options($grid);

santosh answered 11 years ago

this makes the columns have a fixed width
some of the column width is too wide for the text and some are still squeezed (the one with longer data strings)

Abu Ghufran answered 11 years ago

By default, all columns width are equally distributed if not defined.

You can specify some column's width to fixed, rest will go auto.

Your Answer

8 + 17 =

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?