Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread Multiline Grid Headers?
Sun, Nov 29 2015 2:47 PMPermanent Link

squiffy

Telemix Ltd.

Avatar

Is it possible to have multiline grid headers? It just seems to truncate if I go over the width.
Mon, Nov 30 2015 10:55 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< Is it possible to have multiline grid headers? It just seems to truncate if I go over the width. >>

No, not at this time.

Tim Young
Elevate Software
www.elevatesoft.com
Sun, Jan 10 2016 12:20 PMPermanent Link

Eivind

Tim Young [Elevate Software] wrote:

<< Is it possible to have multiline grid headers? It just seems to truncate if I go over the width. >>

No, not at this time.

Tim Young
Elevate Software
www.elevatesoft.com

Just found this topic regarding multiline grid headers. I was asked if is possible to have multiline grid cells by one of my clients today. Does this follow the same rules as the grid headers? Searched the forum and could not find anything regarding this so I think at this time it's not possible. The behaviour they asked for is similar to an Excel sheet where wrap=true and the size of the whole row is automatically sized depending on how much text there is in the cell.

Thanks

Eivind
Mon, Jan 11 2016 4:10 AMPermanent Link

Matthew Jones

Eivind wrote:

> ... The behaviour they asked for is similar
> to an Excel sheet where wrap=true and the size of the whole row is
> automatically sized depending on how much text there is in the cell.

If the grid does what you want mainly, then a "not for now" is probably
the right answer. But you can make your own grid with panels, and
auto-size and change everything basically. I posted how I did it in
EWB1, and it still works in EWB2 but since then I've taken to defining
the rows as forms for ease of coding. I just create a form per needed
row.

http://matthew-jones.com/making-a-prettier-grid-in-elevate-webbuilder/

You lose the automatic things from the main grid, but gain complete
flexibility.

--

Matthew Jones
Mon, Jan 11 2016 7:35 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

I was just experimenting with the same thing (using forms).
I was wondering how memory efficient it was, but if you limit your "grid" to 50 rows and page the rest then I can't imagine it would be too heavy.

Nice to see someone else's example. Cheers.
Mon, Jan 11 2016 8:25 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Eivind,

<< Just found this topic regarding multiline grid headers. I was asked if is possible to have multiline grid cells by one of my clients today. Does this follow the same rules as the grid headers? Searched the forum and could not find anything regarding this so I think at this time it's not possible. The behaviour they asked for is similar to an Excel sheet where wrap=true and the size of the whole row is automatically sized depending on how much text there is in the cell. >>

I'll be enabling word-wrap *in headers and cells only* in an upcoming release (probably next, but no promises).

If you need it right away, you can get it by simply opening the TGridCell* interfaces, and modifying the Caption element's Format property in each interface state so that its Wrap property is True.  You can do the same thing with the TGridHeader* interfaces to achieve the same result.

However, this change *will* get overwritten if you use an alignment for the grid column or grid column header that isn't equal to caLeft, which is why this change is required at the code/property level.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Jan 12 2016 4:30 PMPermanent Link

squiffy

Telemix Ltd.

Avatar

Thanks, Tim.
That workaround is good enough for me for now.
Image