Thanks but I can't use appearance themes as the code I showed was just a
test leading into the real code that will change the color of each row. Our
application changes the color of the rows depending on 'some condition' in
the row. I have it working fine in Table, but I am trying to gain some more
speed in the app by using ListViews instead of Tables as we do not need
editing of the data. At least to me the ListView looks faster then the Table
does, I could be wrong. What I am looking for is faster rendering at
creation time. Right now my pages have a bout a 2 second delay in creating
once the data arrives at the browser and I am trying to make this a shorter
time period. I am open to other suggestions if you have any?

Thanks,
Jim


On 5/4/07, Fabian Jakobs <[EMAIL PROTECTED]> wrote:

 Jim Hunter schrieb:

I forgot, this is in qooxdoo .6.6, thanks.

This was the critical hint ;-) The issue you are facing the the good old
appearance overwrites user value bug in the older qooxdoo releases. This is
now fixed in svn and will be solved with the next release but for 0.6.6you will 
have to redefine the appearance for the content cell:
'list-view-content-cell':

var theme =  
qx.manager.object.AppearanceManager.getInstance().getAppearanceTheme();
var apar = theme.getAppearance('text-field');
apar.state = function(vTheme, vStates) {
  return {
    backgroundColor : vStates.selected ? this.bgcolor_selected : "yellow",
    color : vStates.selected ? this.color_selected : null
  };
}


Best Fabian


On 5/3/07, Jim Hunter <[EMAIL PROTECTED]> wrote:
>
> I am trying to do some modification of the ListView in order to provide
> colored background for rows and I'm not getting what I would expect. In
> preparation for final changes I tried some brute force changes but got
> nothing. I placed a line right after this line:
>
> vCell = new vColumns[vCol].contentClass;
>
> to set the background color of all cells to yellow but it stayed white.
> I did something similar to this in the Table by changing the Row element
> background and that worked fine, but the ListView does not have a row
> element. Is there some other place that the background is getting changed
> that I am not seeing? Here is what the code now looks like, I tried both the
> qooxdoo method and I tried setting the DOM property:
>
>         vCell = new vColumns[vCol].contentClass;
>         vCell.setBackgroundColor('yellow');
>         vCell.setStyleProperty('backgroundColor', 'yellow');
>
> Does anyone have an idea of where I can look to get this working?
>
> Thanks,
> Jim
> www.D4PHP.org
> www.D4PHP-Hosting.com
>
>
------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

------------------------------

_______________________________________________
qooxdoo-devel mailing list
[EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



--
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Hans-Henning Doerr, Ralph Dommermuth, Matthias 
Ehrlich Andreas Gauger, Matthias Greve, Robert Hoffmann, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to