On Wed, Oct 19, 2011 at 19:37, John de la Garza <j...@jjdev.com> wrote:

> On Thu, Oct 13, 2011 at 2:12 PM, Derrell Lipman
> <derrell.lip...@unwireduniverse.com> wrote:
> > On Thu, Oct 13, 2011 at 16:17, John de la Garza <j...@jjdev.com> wrote:
> >>
> >> I am using a remote table.  I'd like to have rows colored based on
> >> some rules I have.  Any ideas on where to look for docs on adding some
> >> code that lets the renderer change colors on a row by row basic?
> >
> > Hi John,
> > Have a look at the Conditional cell
> > renderer.
> http://demo.qooxdoo.org/current/demobrowser/#table~Table_Conditional.html
> > Derrell
> >
>
> I want the whole row to change color.  The addNumericCondition only
> causes a single cell to change color.
>

Oh, ok. So instead of a different cell renderer, you want a different row
renderer. The default one produces the alternating two colors, but you could
subclass that one and do whatever you like. The row renderer gets the entire
row of data, so can make decisions based on that. You'll have to customize
it yourself, though. There's no existing conditional row renderer like there
is a Conditional cell renderer. Look at qx.ui.table.rowrenderer.Default

Cheers,

Derrell
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to