disable column sorting:

getGridModel().add("fieldName").sortable(false);

with regards
Sven Homburg
Founder of the Chenille Kit Project
http://chenillekit.codehaus.org




2010/8/4 Rich <rich...@moremagic.com>

> Hi,
>
> I have a Grid with a source class that contains a Timestamp object. When
> this column is sorted with the default GridSortModel, it seems to be done
> alphanumerically rather than by date-time comparison. I'm trying to figure
> the best way to handle this. I notice GridSortModel is an interface and I
> could potentially implement a custom one to handle the Timestamp, but it's
> not very clear how to implement a GridSortModel. I couldn't find any
> examples. Alternatively, is it possible to manually disable the sorting
> button for a single column in a Grid? I have much better search parameters
> for Timestamp in an external form to the Grid, so the built-in sorting of
> the Grid for my Timestamp field is really superfluous.
>
> Thanks,
> Rich
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to