-
30 Sep 2008 11:46 PM #1
Table - Highlighting cells / rows
Table - Highlighting cells / rows
My 2nd post

I already have a web-client that updates a table and then highlights any rows that have been updated.
I'm trying to work out the best way to highlight
- An entire row
- Individual cells
Is there a quick way to say 'highlight row X' or 'highlight the row with object A in my store'?
Additionally, there appears to be a date renderer and ... (another one - I can't remember at the moment), can I 'chain' renderers so that I can highlight a normal cell, a date cell etc without extending each of the renderer classes? Any thoughts?
Many thanks,
Rob.
-
1 Oct 2008 2:23 AM #2
We also have to highlight some rows.
Currently we do this by implementing GridCellRenderer.
But still with this approach it is not clear how to set style properties for the whole table cell (TD tag). For example it is easy to change cell font with rendering html SPAN tag but it is not possible to change cell background?
Any thoughts?
-
1 Oct 2008 4:19 AM #3
I really don't know at this stage - perhaps you can use the el() function I read about and manipulate the DOM directly?
I would have hoped the 'cell renderer' would enable me to change 'how the cell renders', background included
-
13 Mar 2009 6:15 PM #4
Background and everything that has css included already
Background and everything that has css included already
Cell renderer can change background color:
Code:public String render(Model model, String property, ColumnData config, int rowIndex, int colIndex, ListStore<Model> store) { if (model.isValid()){ config.style = "background-color:#FC9787;"; } }


Reply With Quote
