tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Massimo Lusetti (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-588) It should be much easier to set an initial sort column of a grid
Date Fri, 12 Aug 2011 15:46:27 GMT

    [ https://issues.apache.org/jira/browse/TAP5-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13084204#comment-13084204

Massimo Lusetti commented on TAP5-588:

There is the sortModel parameter which can help here... isn't this sufficient? 

> It should be much easier to set an initial sort column of a grid
> ----------------------------------------------------------------
>                 Key: TAP5-588
>                 URL: https://issues.apache.org/jira/browse/TAP5-588
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions:
>            Reporter: Hugo Palma
>            Priority: Minor
>              Labels: tapestr5-review-for-closing
> Right now if you want to set an initial sort column for a grid you have to code something
> if (grid.getSortModel().getSortConstraints().isEmpty()) {
>             grid.getSortModel().updateSort("column");
> }
> for every grid in the page.
> It would be great if an "initialSortColumn" or "defaultSortColumn" parameter was added
to the grid component that would receive the name of the column to which the grid would be
ordered by default.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message