antum
Posts: 7
|
| Posted: 02/09/2006, 10:02 PM |
|
Hi,
I've got a grid, in a website.. it is based off the Store example but I didn\t copy and paste so I might have done something wrong.
It seems that the product description wont word wrap and is taking up all the room it can.
I've tried to control it with some div's but nothing has really worked.
www.stringcity.co.nz will show you what I\m up to.
Any help is much appreciated.
Thanks,
:Ant
_________________
Anthony Brown
BICT, Zend Certified Engineer (PHP)
IT Manager
Anzatea
http://www.anzatea.co.nz/
03 374 6518 |
 |
 |
Walter Kempees
|
| Posted: 02/10/2006, 1:21 AM |
|
antum,
I'll have to experiment with this because it's been a while but
Set Description to type=HTML
It might then allready work, if not than in PhP you could
str_replace(newline,<br>,Description) or
replace any newline characters by HTML <br>.
If needed I can give more detail, and it's off the back of my head.
"antum" <antum@forum.codecharge> schreef in bericht
news:243ec2c5f0a44c@news.codecharge.com...
> Hi,
>
> I've got a grid, in a website.. it is based off the Store example but I
> didn\t
> copy and paste so I might have done something wrong.
>
> It seems that the product description wont word wrap and is taking up all
> the
> room it can.
>
> I've tried to control it with some div's but nothing has really worked.
>
> www.stringcity.co.nz will show you what I\m up to.
>
> Any help is much appreciated.
> Thanks,
> :Ant
> _________________
> Anthony Brown
> BICT, Zend Certified Engineer (PHP)
> IT Manager
> Anzatea
>
> http://www.anzatea.co.nz/
> 03 374 6518
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
antum
Posts: 7
|
| Posted: 02/10/2006, 12:05 PM |
|
Hi Walter
This would work if there were line breaks in the original description, but it is just one continuous sentence.
The idea is that I should be able to restrict the size of the grid, or the table that holds the grid so that it fits on the page nicely..
It works fine in the Store example but I can't seem to replicate that.
Thanks,
:Ant
_________________
Anthony Brown
BICT, Zend Certified Engineer (PHP)
IT Manager
Anzatea
http://www.anzatea.co.nz/
03 374 6518 |
 |
 |
Walter Kempees
|
| Posted: 02/10/2006, 12:37 PM |
|
then explode the sentence on spaces
explode()
or instring counting the characters upto desired lenght find the previous
space and replace that for a <br>
several meaningful ways to do this.
Am off now, but will watch.
"antum" <antum@forum.codecharge> schreef in bericht
news:243ecf22137bcb@news.codecharge.com...
> Hi Walter
>
> This would work if there were line breaks in the original description, but
> it
> is just one continuous sentence.
>
> The idea is that I should be able to restrict the size of the grid, or the
> table that holds the grid so that it fits on the page nicely..
>
> It works fine in the Store example but I can't seem to replicate that.
>
> Thanks,
> :Ant
> _________________
> Anthony Brown
> BICT, Zend Certified Engineer (PHP)
> IT Manager
> Anzatea
>
> http://www.anzatea.co.nz/
> 03 374 6518
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
mastertrac
Posts: 10
|
| Posted: 02/14/2006, 12:38 PM |
|
I'm no pro and maybe this is simplistic, but are you sure the "nowrap" check box is not checked when you click in that cell?
_________________
Thanks,
Mark |
 |
 |
Walter Kempees
|
| Posted: 02/14/2006, 12:49 PM |
|
in fact Mastertrac made me realize that antum never said it was a label or a
textbox.
If generated using the Grid Builder it would be a label and just grow
according to the size of the content.
My above solution HTML and inserting <br> would work but Mastertrac made me
experimet and accomplish the following:
In Design Mode, right click the label containing the textfield and CHANGE TO
Textarea.
Then in the Format properties of the textarea set cols = 20 and wrap =HARD
Works for me!
"mastertrac" <mastertrac@forum.codecharge> schreef in bericht
news:243f23fd10403c@news.codecharge.com...
> I'm no pro and maybe this is simplistic, but are you sure the "nowrap"
> check box
> is not checked when you click in that cell?
> _________________
> Thanks,
>
> Mark
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|