Hi Michael, On Saturday 23 May 2009 Michael Helwig wrote: > thanks for your answer. I have already found those classes and functions > but I'm still not sure if this is what I'm looking for. I hoped that > there was an easier way than writing a new row renderer, since I only > need to change the color of a single row (or, at least, only a few > rows). No, there is no easier way to achieve this. As Ian already mentioned you need to write your own row renderer.
> But if there is no easier way - can I achieve this by writing a > new rowrenderer and change that at runtime? Do you know if would be > possible to keep the right rows marked when the table gets sorted (i.e., > can I make the color of the rows dependent on their ID numbers)? The table widget does have a "dataRowRenderer" property to set the row renderer (also at runtime). When you take a look at the default row renderer (rowrenderer/Default) and at the Interface (IRowRenderer) you can see that each created row does get infos about the data which should be displayed. So you can change the color of the row this way (take a look at "createRowStyle" and "updateDataRowElement" method at IRowRenderer). cheers, Alex ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
