Maybe that's because tapestry keeps track of the sorting in the session and
doing an updateSort reverses the sorting with each page call.
I have this solved as such:
if (grid.getSortModel().getSortConstraints().isEmpty()) {
while
(!grid.getSortModel().getColumnSort("creation_date").equa
use gridDatasource interface to prepare your data the way you want.
http://tapestry.apache.org/tapestry5.2-dev/apidocs/org/apache/tapestry5/grid/GridDataSource.html
http://www.packtpub.com/article/tapestry-5-advanced-components from
Alexander Kolesnikov
see also http://wiki.apache.org/tapestry/T
Anyone? Sorting of grid column programmatically should not be that difficult
correct?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Grid-display-after-a-new-row-insertion-tp4715298p4718683.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
I have this -
t:type="grid" source="items" t:model="beanModel"
and
public BeanModel getBeanModel() {
BeanModel model = beanModelSource.createDisplayModel(Item.class,
messages);
PropertyModel nameColumn = model.getById("lastU
Order your grid by default on a 'date_created' column ? The newly inserted
record should have the latest date so it would appear first ?!
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Grid-display-after-a-new-row-insertion-tp4715298p4715531.html
Sent from the Tapestry - U