Two grids in the same page are definitively not allowed unless loaded via Ajax. That is because they use the URL to transfer grid parameters and if you have two it is not clear which one applies to.
On Sunday, 2 March 2014 14:45:37 UTC-6, Tim Richardson wrote: > > I think there's a warning in the book against two grids on the same page. > I've never tried it due to the warning, but state of the grid is maintained > via data passed back in the request. I think the grid code assumes that any > grid state data passed back applies to it, so two grids may both assume > they are the target of state information actually sourced from only one > grid when it POSTs back updated state. Likely to be very confusing. > Using components (LOAD) should work around that. > > Your application platform still needs to address the problem of > communicating with the server. > You either round trip with REST, which means page reloads, or you use > javascript to get part of the page to reload (e.g. LOAD, see chapter on > components, it's pretty clever) or you can use full AJAX. Using LOAD may > mean a bit of javascript, mainly so that your LINK button requests the > LOADed component to reload. It's a common use-case in web2py and you'll > easily get help here. I think the book documentation is reasonably good. > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

