Thanks Manish,
Your suggestions helped move me in right direction. With the help of Jason (Pan Troglodytes at flexcoders), here is a DataGrid component that can be used to conditionally change rowColors through CSS.
It's not that complicated, but it's a start. Thank you all for your input.
Tim Hoff
--- In [email protected], "Manish Jethani" <[EMAIL PROTECTED]> wrote:
>
> On 7/17/06, Tim Hoff [EMAIL PROTECTED] wrote:
>
> > 1. In drawRowBackgrounds(), I'm looping by curRow, CSS
> > rowBackgroundColors, and curCol (Columns) - to match the columns
> > [curCol].dataField with the CSS fieldName. This works fine. The
> > problem that I'm having is getting the cell data to compare with the
> > CSS value. I've banged on this for while now, but keep coming up
> > short.
>
> The 'iterator' variable (protected) always points to the topmost
> visible row. You can get the data from there by looking up the
> 'dataField' in the collection.
>
> > 2. Is there a way to draw the row background at the same time that
> > the data is rendered? Currently the row backgrounds are painted and
> > a delay occurs before the cells are filed with data. Not the best
> > look.
>
> :-/
>
> > 3. Wish-list: Is there an easy way to blend (mid-tween) two row
> > backgroundColors, should the row meet multiple conditions. I
> > suppose that I would also need to consider the column
> > backgroundColor, but let's take it one step at a time.
>
> So if you're drawing with a non-1 alpha, the colours will blend.
>
> Manish
>
| Custom software development | Database development software | Embedded software development |
| Offshore software development | Software development |
YAHOO! GROUPS LINKS
- Visit your group "flexcomponents" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
