RE: [SPAM] [flexcoders] rendering HTML markup in AdvancedDataGrid

2010-02-06 Thread Tracy Spratt
Item Renderers are only created for the visible rows plus a few buffers.
Performance is primarily determined by the rendering and item data access.

 

Be aware that htmlText only renders a small subset of html tags.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tim Romano
Sent: Saturday, February 06, 2010 12:36 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] rendering HTML markup in AdvancedDataGrid

 

  

I am considering using an AdvancedDataGrid in hierarchical mode but am 
not sure it can do what my app needs to do, or if it can, whether the 
approach will be efficient--execute quickly and use up a lot of memory. 
I haven't worked with the AdvancedDataGrid before.

The grid will look like this:

[v] Category A
[v] Title 1
* passage one blah blah blah
* passage two
[v] Title 2
[v] Title 3
.
.
.
[v] Title n

[v]Category B
[v] Title 1
[v] Title 2
[v] Title 3
.
.
.
Title n
etc
etc

When the user clicks on a Title node to expand it, some passages 
excerpted from the corresponding document would be fetched from the 
database, already formatted as HTML like this:

span class='foo'this is an excerpt span class='abc'100 to 
1000/span characters in length/span.

A style sheet must control how the css classes in the passage excerpts 
are rendered. The grid might have as many as 100 rows, and each row 
could contain a couple of paragraphs of html text. Up to 1K each, but 
more typically around 100-200 characters.

If I create an item-renderer using TextArea, will 100 TextAreas be 
created if the grid has 100 Title rows even if only 3 titles are 
expanded by the user? Or are the item renderers created only for the 
rows that actually get expanded and displayed? Is there another way to 
render HTML markup in the ADG?

Thanks





Re: [SPAM] [flexcoders] rendering HTML markup in AdvancedDataGrid

2010-02-06 Thread Tim Romano

Thanks for the reply, Tracy, about the ItemRenderers.

+1 on the htmlText warning. I've used the htmlText of the TextArea in an 
AIR app, which I'm converting from local DB to webservice mode now. The 
html rendering in Flex of the sort of html markup example I gave below 
is better than bad but is far from rich. Adobe gets a very low passing 
grade from me on its htmlText + CSS rendering in Flex. I don't need 
typographic control (kerning, ligatures, etc) but I do want support for 
basic CSS-- I could never get padding and margins to work. Font-family, 
bold, italics, font-size do work.


Tim



On 2/6/2010 2:08 PM, Tracy Spratt wrote:


Item Renderers are only created for the visible rows plus a few 
buffers.  Performance is primarily determined by the rendering and 
item data access.


Be aware that htmlText only renders a small subset of html tags.

Tracy Spratt,

Lariat Services, development services available



*From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
*On Behalf Of *Tim Romano

*Sent:* Saturday, February 06, 2010 12:36 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [SPAM] [flexcoders] rendering HTML markup in AdvancedDataGrid

I am considering using an AdvancedDataGrid in hierarchical mode but am
not sure it can do what my app needs to do, or if it can, whether the
approach will be efficient--execute quickly and use up a lot of memory.
I haven't worked with the AdvancedDataGrid before.

The grid will look like this:

[v] Category A
[v] Title 1
* passage one blah blah blah
* passage two
[v] Title 2
[v] Title 3
.
.
.
[v] Title n

[v]Category B
[v] Title 1
[v] Title 2
[v] Title 3
.
.
.
Title n
etc
etc

When the user clicks on a Title node to expand it, some passages
excerpted from the corresponding document would be fetched from the
database, already formatted as HTML like this:

span class='foo'this is an excerpt span class='abc'100 to
1000/span characters in length/span.

A style sheet must control how the css classes in the passage excerpts
are rendered. The grid might have as many as 100 rows, and each row
could contain a couple of paragraphs of html text. Up to 1K each, but
more typically around 100-200 characters.

If I create an item-renderer using TextArea, will 100 TextAreas be
created if the grid has 100 Title rows even if only 3 titles are
expanded by the user? Or are the item renderers created only for the
rows that actually get expanded and displayed? Is there another way to
render HTML markup in the ADG?

Thanks





No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.435 / Virus Database: 271.1.1/2671 - Release Date: 02/06/10 
07:35:00