On Tue, Jun 28, 2011 at 12:16 PM, [email protected]
<[email protected]>wrote:

> Hi,
>
> I hope some light can be shed on the following. If I under stand
> correctly to get PaginateDataGrid to sort correctly (as my datagrids
> are not sorting but doing random changes) I should pass a SQLAlchemy
> query to the DataGrid and not a list of Object. In other words I
> should not  .all() or .first() any query.
>
> Unfortunately I am in the situation where I do a lot of on the fly
> calculation of before I display data to a user, and thus I first
> retrieve the data from the database do the calculation and then send
> either an object or dictionary to the respective datagrid.


As usual I'm not the best person to answer things related to TG1 ;)
But I would suggest to take a look at how pagination/sorting for DataGrid is
implemented in TG2.
It proposes a solution that is independent from the type of data that your
are displaying.

http://www.turbogears.org/2.1/docs/main/DataGrid/index.html

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