Or you might be able to setup a Conditional render:

   var myrenderer = new qx.ui.table.cellrenderer.Conditional(null, null, null, 
null);
   myrenderer.addRegex(".*[^ ] $", null, "00B720", null, null, null); // one 
trailing space is Green (editable)
   table.getTableColumnModel().setDataCellRenderer(0, myrenderer);

This will color fields in the first column that end in a space as green.

  -Bruce

> -----Original Message-----
> From: Daniel Wagner [mailto:[email protected]]
> Sent: Wednesday, April 07, 2010 10:13 AM
> To: qooxdoo Development
> Subject: Re: [qooxdoo-devel] Rendering rows of table in different colors
> 
> Hi vyankatesh,
> 
> in order to achieve this, you'll have to write your own RowRenderer.
> Take a look at the API documentation for the qx.ui.table.IRowRenderer
> interface and the implementation of qx.ui.table.rowrenderer.Default, in
> particular the "createRowStyle" and "updateDataRowElement" methods.
> They're both called with a map containing information on the current row
> which you can use to decide how to style it.
> 
> qx.ui.table.table has a property "dataRowRenderer" which you can use to
> apply your custom renderer.
> 
> 
> Regards,
> Daniel
> 
> [email protected] schrieb:
> > Hi,
> >
> >
> >     I am trying to display rows of my tables in different colors .
> >     Please help me to achieve this. Please provide sample code to do
> same.
> >     Thanks.
> >
> > Regards,
> > vyankatesh
> >
> >
> > ------------------------------------------------------------------------
> >
> > ------------------------------------------------------------------------
> ------
> > Download Intel® Parallel Studio Eval
> > Try the new software tools for yourself. Speed compiling, find bugs
> > proactively, and fine-tune applications for parallel performance.
> > See why Intel Parallel Studio got high marks during beta.
> > http://p.sf.net/sfu/intel-sw-dev
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > qooxdoo-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 
> --------------------------------------------------------------------------
> ----
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to