On 1/4/07, Jim Steil <[EMAIL PROTECTED]> wrote:
I've just started with TurboGears (2 weeks in) and would like to use the DataGrid widget to display lists for me without having to write a template for the widget.
if you want to change the structure (read html) you need to extend it.
Yes, I have a template for the page on which the widget will be displayed, but I would like to avoid having to write a template for each list widget.
I don't undestand this, but by subclassing the widget this can be generic.
Is there a way that I can use DataGrid without a widget template and get the column sorting to happen automatically?
huh? without a template there is nothing to display therefore there is no DataGrid
Also, I see that the style of the grid is controlled by grid.css. I can't find grid.css and was wondering what the best way is to override it. I want to change the way that the <a> tag is displayed. Also, can I pass something in my column definition that will control the <td> styles applied?
that's what the CSS attibute is a list of CSSLink objects --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

