Hello,
  I'm working on a project where I'm using tw2.jqgrid to show a series
of items. It's not there yet (the grid is blank and the json query
returns NULL) but I'll get there.

There's two things I'm not sure tw2.jqgrid can do.

The first is auto-updates.  This table the grid uses for data is updated
in the backend so I'd like to be able to display the last n'th items
and update this every x seconds with the latest n'th.  I've done this
previous with a html table and a javascript refresh which redraws the
entire page.

Secondly, is there a way of apply a class to a cell or row based upon
a database item?

Again, its working with a html table with:
 <tr class="rowtype${thing.type_id}" ...etc
I then have a CSS file with rowtype1 rowtype2, rowtype3, etc
This is done because each row needs to be a certain colour based upon
type_id so all type_id==2 are blue etc
Is this possible with jqgrid? If so how?

Finally, because I just remembered, is there a way of caching that CSS
file I generate? At the moment, each call to the database regenerates
the CSS document, which means an entire scan of the thing_type database
to pull out id,bgcolor and fgcolor.  The table doesn't change much so
to me if I could cache it it would be better.

 - Craig

-- 
Craig Small VK2XLZ   http://enc.com.au/          csmall at : enc.com.au
Debian GNU/Linux     http://www.debian.org/      csmall at : debian.org
GPG fingerprint:     5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to