Hi Stefan,

thanks for your suggestion. Possibly Derrell's playground example might be
useful for your use case as well.

The good news is that cellRenderer style seems to win over rowRenderer style
(which makes sense, I think).

Cheers,
Fritz

On Thu, 4 Feb 2010, Stefan Volbers wrote:

> Hi Fritz,
>
> I had the same case in the end of 2008 and solved it by writing my own 
> cellrenderer.
>
> I then copied several parts of cellrenderer.Conditional, because I had to 
> change the behaviour for my needs anyway , and set
>
>       style["background-color"] = this.conditions[i][1];
>
> on occasion. I haven't touched it since then as it works, but, looking at 
> Conditional's source right now, it might work out for you to extend 
> Conditional and just override __applyFormatting and _getCellStyle to support 
> "background-color" too. Well, I'd suggest you to head that way.
> Certainly, developers like Derrell or others might come up with more adequate 
> solutions.
>
> HTH, else write if you need more info,
> greetings,
> Stefan
>
>
> On 04.02.2010 09:58, Fritz Zaucker wrote:
>> Hi,
>> 
>> I have a table with say 5 columns. I'd like to have a different background
>> color in one of these columns (e.g. column 3).
>> 
>> As far as I could figure out the background color is set in the 
>> RowRenderer,
>> but for the whole row. So the next obvious choice would be the 
>> CellRenderer.
>> However, it is not clear to me how the two might interfere in this respect.
>> 
>> And (similar) issue arises if I'd like to set a different background color
>> for a specific cell, e.g. similar to the Conditional CellRenderer (which
>> unfortunately only let's me specify styles for the cell content).
>> 
>> I'd appreciate any hints on how to implement something like that.
>> 
>> Thanks and best regards,
>> Fritz
>> 
>
>

-- 
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to