Re: Grid display after a new row insertion

2011-08-22 Thread antalk
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

Re: Grid display after a new row insertion

2011-08-21 Thread françois facon
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

Re: Grid display after a new row insertion

2011-08-20 Thread TG
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. ---

Re: Grid display after a new row insertion

2011-08-19 Thread TG
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

Re: Grid display after a new row insertion

2011-08-19 Thread antalk
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