You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Kiran Govind <ki...@gmail.com> on 2016/03/09 17:25:43 UTC

Tapestry Grid Sort of column is case sensitive

Hi All,

I have one question. In Tapestry's Grid component the default behaviour of
sort on any column is case sensitive. My requirement is to make the sorting
case insensitive. Can any one please help me over here.

Thanks,
Kiran Govind

Re: Tapestry Grid Sort of column is case sensitive

Posted by JumpStart <ge...@gmail.com>.
A working example:

	http://jumpstart.doublenegative.com.au/jumpstart7/examples/tables/griddatasources

Geoff

> On 10 Mar 2016, at 1:45 AM, Thiago H de Paula Figueiredo <th...@gmail.com> wrote:
> 
> On Wed, 09 Mar 2016 13:25:43 -0300, Kiran Govind <ki...@gmail.com> wrote:
> 
>> Hi All,
> 
> Hi!
> 
>> I have one question. In Tapestry's Grid component the default behaviour of sort on any column is case sensitive. My requirement is to make the sorting case insensitive. Can any one please help me over here.
> 
> In this case, you should create your own GridDataSource implementation and pass one instance of it to the source parameter of Grid instead of passing a List. GridDataSource.prepare(int startIndex, int endIndex, List<SortConstraint> sortConstraints) is where you should put your sorting logic.
> 
> -- 
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry Grid Sort of column is case sensitive

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Wed, 09 Mar 2016 13:25:43 -0300, Kiran Govind  
<ki...@gmail.com> wrote:

> Hi All,

Hi!

> I have one question. In Tapestry's Grid component the default behaviour  
> of sort on any column is case sensitive. My requirement is to make the  
> sorting case insensitive. Can any one please help me over here.

In this case, you should create your own GridDataSource implementation and  
pass one instance of it to the source parameter of Grid instead of passing  
a List. GridDataSource.prepare(int startIndex, int endIndex,  
List<SortConstraint> sortConstraints) is where you should put your sorting  
logic.

-- 
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org