2011/5/16 René Rolando Elizalde Solano <[email protected]>:
> I want a practical example of the implementation or tracks
> sorteable of the datagrid!
> sortable = dict(sortable=True)
> # [('No',lambda row:row[0]),
> user_grid = PaginateDataGrid(name='User',
>     fields=[
>         ('ID', lambda row:row[0], sortable),
>         ('Username', lambda row:row[1], sortable),
>         ('First Name', lambda row:row[2], sortable)
>     ])
>

Never used PaginateDataGrid from TG1, probably there is a ready to be
used example somewhere around.
Try to look at the TG1 doc.

Otherwise you can find a guide about making a DataGrid Paginated and
Sortable here:

http://sourceforge.net/p/turbogears2/tg2docs/ci/1e5e580246579c6a14635cd9336d66a0cd6bcf71/tree/docs/main/DataGrid/index.rst

This is for tw.forms.DataGrid, but it should look quite the same with
TurboGears  Widgets.

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

Reply via email to