On Wed, Feb 22, 2012 at 09:36:10AM -0800, Ralph Bean wrote:
> On Feb 21, 3:56 am, Craig Small <[email protected]> wrote:
> > 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.
> 
> What widget are you using specifically?
> tw2.jqplugins.jqgrid.jqGridWidget or
> tw2.jqplugins.jqgrid.SQLAjqGridWidget ?
The second one.

I found that I could never get data (always returned NULL) unless I
added this line to the WhateverGrid widget

    entity.query = model.DBSession.query_property()

Even with the relevant line uncommented in model/__init__.py

-- 
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