Click
  1. Click
  2. CLK-154

Enhance PropertySelect control to allow ordering of option list.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: extras
    • Labels:
      None

      Description

      The PropertySelect control currently doesn't let you specify the order the options list so it's in the order the cayenne query returned which is ordered by primary key.

      Most use cases i have of the PropertySelect control (and assume other people as well) would like it to be ordered alphabetically ASC by whatever you pass in as the label (setOptionLabel method). So maybe modify the default behaviour? Or add a flag to set it to do this.

      Also there maybe some use cases where you want to order by something different so maybe add an optional setOrdering method that passes in an org.objectstyle.cayenne.query.Ordering object to add to the PropertySelect query.

        Activity

        Hide
        Malcolm Edgar added a comment -

        Checked into SVN will be available in release 1.2

        Show
        Malcolm Edgar added a comment - Checked into SVN will be available in release 1.2

          People

          • Assignee:
            Malcolm Edgar
            Reporter:
            David Frizelle
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development