Hello Ric,

In fact, after posting my first message I realized I wasn't testing the good
values. The TableRowRenderer is indeed updates its css styles at runtime (in
the last svn at least).

So, in my table row renderer, I extend the default one by adding an extra
parameter (a map with the names (ids) of the column of the tables as key and
a string hex color as value). 

In the two methods createRowStyle and updateDataRowElement, I modified the
original code by adding a condition on the array parameter compared to the
current value of a specific rowData info (accessible via the first parameter
of theses methods).

So, whenever the values in the table are modified, the following methods are
called. As the new condition is computed, the row style is updated in
function of the result.

I can provide a full working "MyConditionalTableRowRenderer" source code if
really necessary.

Good luck,

Best,

Benoît.



Riccardo-Maria BIANCHI wrote:
> 
> 
> Hi benco,
> 
> could you please explain how to solve it? I also have to develop 
> something similar to what you did.
> 
> Thanks a lot :-)
> 
>    Ric.
> 
> 
> 
> benco wrote:
>> Ok, problem already solved. Sorry for this "kind of SPAM" :)
>>
>>
>>
>> benco wrote:
>>   
>>> Hello,
>>>
>>> I just implemented a custom 'conditional' TableRowRenderer that displays
>>> rows in different color when the value in a specific column of my table
>>> {is higher than|is lower than|equals to} a arbitrary value.
>>>
>>> The problem is that when I update the value, the tablerowrenderer
>>> behavior
>>> isn't update. 
>>>
>>> I could set a new TableRowRenderer Instance (not tested yet) but it may
>>> be
>>> inefficient. So I try to call the updateDataRowElement(Map rowInfo,
>>> element rowElement) method but I don't really know how to get the
>>> current
>>> rowElement variable in my table.
>>>
>>> Any ideas ?
>>>
>>> Thanks a lot in advance,
>>>
>>> Best,
>>>
>>> Benoît.
>>>
>>>     
>>
>>   
> 
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day 
> trial. Simplify your report design, integration and deployment - and focus
> on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Update-the-TableRowRenderer-at-runtime-tp4071241p4076431.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to