This topic is locked

Widths of cell

12/7/2007 7:35:46 AM
PHPRunner General questions
J
Jepsen author

I have a pretty standard list which I display in a more or less "out of the box" interface.
It all works fine except for a small cosmetic detail which is of importance.
On the list page, the width of each field is adjusted automatically depending of the contents of the fields. Sometimes a field is wrapped and sometimes it is not.
I have one particular field which I do never want to wrap. This because the field becomes meaningless if you do not see the contents on one line. I could offcourse set the field widths to a fixed length which will always hold the lobngest possible string.
However, I prefer if I could force the cell to be just wide enough to hold the string without wrapping.
Is this possible?
rgds

Morten Jepsen

Alexey admin 12/7/2007

Morten,
try to set this field view type to Custom and enter this expression there:

$value=str_replace(" "," ",htmlspecialchars($value));

J
Jepsen author 12/7/2007

Morten,

try to set this field view type to Custom and enter this expression there:


It works, Thanks for excellent service.
:-)

Morten

O
osluk 12/8/2007

Alexey,
If I want to avoid the view, edit etc colums from being wider than required, see image 1 where the columns "Edit Inline Edit View Tickbox Ref" spread.
Also allow a text field to be a fixed minimum width of 250 pixels or X number of charecters is there a way of doing this?
http://mapperley.com/GQBR-07/Wine_Data_list.php


http://mapperley.com/GQBR-07/Copy_of_Wine_Data_list.php


I have tried adjusted cell width in the visual editor with limited sucess.
Cheers Chris

Alexey admin 12/10/2007

Chris,
try to reduce the size of Edit/View/... columns in Visual Editor.

If nothing helps publish your project on Demo account(last tab in PHPRunner) and send a link to it to support@xlinesoft.com along with the problem description.