I did a similar thing with a DataGrid for a quiz statistics reporting tool. Basically we have a few columns with quiz scores: average score, minimum score, etc. The cells are formatted depending on the score, so low scores show up in red bolded text, while high scores show up in green unbold. This was pretty easy to accomplish using inline itemrenderers. Coloring the background of the cells would be pretty straightforward too by just using a canvas in the itemrenderer and setting the background color programatically based on the cell value.

I might try to post an example of this on my blog over the next few days. But I think just using inline itemrenderers will do what you want to do.

And I think Adobe's answer has been: yes, they hear you, they're working on improvements to the DataGrid and other business components, so chill out, they're working as fast as they can.

And why not send out your list of 20 components you want? There are a lot of developers on this list that can probably make something you want made. If they happen to think it's interesting enough they might just do it, or maybe you someone will come back and say they can do it for $$. But just ask for it first.

Doug


boy_trike wrote:

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
> After all, we
> can't provide every feature that developers need without bloating our
> components, and we've assumed that subclassing will be a commonly used
> technique.

Gordon: Instead of making components FATTER, create MORE components. Just like there is a vertical and horiz. grid. I used to have a T-shirt that said "he who dies with the most toys wins" Let me paraphrase, "He who has the MOST components wins " (with faster, more focused solutions" Just like the chart components are an extra price option, please create more components and charge extra for them. I could give you a list of about 20 that would have a value to most business developers. (esp. those getting paid a fair
amount for their work.

> By the way, when you say "for each cell" do you mean that each cell
> needs to render differently based on the data it displays? Or every row
> might be different, but each column in a row is the same? Or that each
> column is different, but every row in a column is the same?
>

I mean EACH cell, not row or column. while alt. coloring of rows is asthetically pleasing, and coloring columns can make one stand out, I want to solve a business problem (i.e. customers over credit limit have that amount in bold, Orders over 90 days have the due
date in RED

Bruce


Reply via email to