PS. Just spotted; the variable I've called result_count needs to be computed before the limit/offset -- ie it's the total number of rows in the recordset.
Am Mittwoch, 18. Juli 2012 23:01:12 UTC+1 schrieb Craig Small: > > Hi, > There are muliple tutorials out there showing how toscawidgets works > with turbogears but often they are contradicting in how they come about > it. A good example is some use the middlewear, some use a specific > call (eg a data routine) and then others bring up the data in the > actual function that generates the grid. > > I'm specifically interesting in the jqgrid setup where the grid is > displayed once and it then makes calls to get specific data using, i > guess a json transfer happens there. Also I've not seen how the query > does sensible limiting either; what i mean is if you have several > thousand records you dont want to load them all in and then ditch > most to display the middle 10. I couldn't see how that was done. > > I've 2.2.0rc2 here on my projects and they seem to be going ok. > > - 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 view this discussion on the web visit https://groups.google.com/d/msg/turbogears/-/3s-kii5NbwAJ. 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.

