El Martes, 24 de Octubre de 2006 17:26, Jose escribió:
> [...]
> To do this feature I need mix 2 decorators:
>
>    @expose(fragment=True)
>    @paginate("data")
> [...]

My solution requires 2 steps:

   - controller method must to return one dict with 2 entries: 'data' (for 
recordset) and 'grid' (for the DataGrid2G)

   - paginate() decorator must be changed to return the result of grid's 
render() method (passing the new data slice) instead the updated dict from 
original paginate() implementation. To do this I coded a new version of this 
function, called dgpaginate()

Regards,
Jose

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

Reply via email to