Re: Sortable computed Grid column

2010-02-04 Thread Thiago H. de Paula Figueiredo
On Thu, 04 Feb 2010 16:06:08 -0200, Vangel V. Ajanovski wrote: For example in 100% of cases we have source of the grid as List, where Employee is an Entity (via Hibernate). And in 90% the cells we have something like this ${employee.person.firstName} ${employee.person.lastName} You could, f

Re: Sortable computed Grid column

2010-02-04 Thread Vangel V. Ajanovski
On 26.01.2010 20:00, Michael Prescott wrote: > How do you go about making a computed column in a Grid sortable? The docs > on Grid are great, but in the example the computed column is non-sortable. > Can I do it by providing a PropertyConduit through the grid's BeanModel > model? > > Michael > >

Re: Sortable computed Grid column

2010-01-27 Thread Howard Lewis Ship
On Wed, Jan 27, 2010 at 9:14 AM, Norman Franke wrote: > I ran into a similar problem. IMHO, the Grid component seems frustratingly > half-finished. No default sort, no easy to modify sorting behaviors, etc. It could use some TLC, and needs to be better split out into reusable sub-components, so t

Re: Sortable computed Grid column

2010-01-27 Thread Norman Franke
I ran into a similar problem. IMHO, the Grid component seems frustratingly half-finished. No default sort, no easy to modify sorting behaviors, etc. You can't set the sortable property on the property model, since the data model is completely overwritten in Grid's setupDataModel method. Y

Re: Sortable computed Grid column

2010-01-26 Thread Howard Lewis Ship
That is the right approach, a smarter implementation of a property within the BeanModel that can handle the sorting. On Tue, Jan 26, 2010 at 11:00 AM, Michael Prescott wrote: > How do you go about making a computed column in a Grid sortable?  The docs > on Grid are great, but in the example the c

Sortable computed Grid column

2010-01-26 Thread Michael Prescott
How do you go about making a computed column in a Grid sortable? The docs on Grid are great, but in the example the computed column is non-sortable. Can I do it by providing a PropertyConduit through the grid's BeanModel model? Michael