On 24 Aug 2007, at 15:34, walterbyrd wrote:
> I want to understand how a datagrid is implented. Especially as to > what is done on the front end, and what is done on the backend, and > what is done in the middle. Have a read http://trac.turbogears.org/browser/branches/1.0/turbogears/widgets/ datagrid.py >> From what I have seen, the TG datagrid widget is used with SQLObject: > > http://docs.turbogears.org/1.0/DataGridWidget > > So does the widget only work with SQLObject, or will it also work > with SQLAlchemy? I've mainly used PaginateDataGrid, which is a simple sub-class of DataGrid, and it works fine with SQLAlchemy. I don't think DataGrid cares about the ORM and only expects a list of elements. See the class definition docstring. > I'm also a little unsure of how javascript fits in to all this. Do > javascript libraries - like JQuery or extjs - handle all of the logic? > Or are the javascript libraries just front ends used to input data, > and display data, without a web-page reload? DataGrid doesn't appear to use any JavaScript. It simply renders a grid from a kid template. Cheers Chris Miles --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

