Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-588

It should be much easier to set an initial sort column of a grid

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 5.1.0.2
    • None
    • tapestry-core

    Description

      Right now if you want to set an initial sort column for a grid you have to code something like:

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hpalma Hugo Palma
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: