You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Jensen, Bob" <bo...@sensage.com> on 2011/10/07 00:16:09 UTC

Remove Sort on SortableDataProvider

I have a SortableDataProvider and have set a sort on it. It sorts fine.
Now, I would like to remove the sort so no sorting occurs.

Is there a way to remove the sort?

Thanks in advance







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


RE: Remove Sort on SortableDataProvider

Posted by "Jensen, Bob" <bo...@sensage.com>.
Thanks!

provider.setSort(null); worked!

I had tried:
provider.setSort(null, true);  which caused a null pointer later on.





> -----Original Message-----
> From: Bertrand Guay-Paquet [mailto:bernie@step.polymtl.ca]
> Sent: Thursday, October 06, 2011 8:52 PM
> To: users@wicket.apache.org
> Subject: Re: Remove Sort on SortableDataProvider
> 
> Have you tried:
> provider.setSort(null); ?
> 
> If you don't provide a sort property to your provider, that's what it
> starts with.
> 
> On 06/10/2011 6:16 PM, Jensen, Bob wrote:
> > I have a SortableDataProvider and have set a sort on it. It sorts
> fine.
> > Now, I would like to remove the sort so no sorting occurs.
> >
> > Is there a way to remove the sort?
> >
> > Thanks in advance
> >
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org


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


Re: Remove Sort on SortableDataProvider

Posted by Bertrand Guay-Paquet <be...@step.polymtl.ca>.
Have you tried:
provider.setSort(null); ?

If you don't provide a sort property to your provider, that's what it 
starts with.

On 06/10/2011 6:16 PM, Jensen, Bob wrote:
> I have a SortableDataProvider and have set a sort on it. It sorts fine.
> Now, I would like to remove the sort so no sorting occurs.
>
> Is there a way to remove the sort?
>
> Thanks in advance
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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