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

        Henri Yandell made changes -
        Project Import Fri Mar 20 14:11:32 PDT 2009 [ 1237583492744 ]
        Malcolm Edgar made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Malcolm Edgar made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Resolved [ 5 ]
        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
        Malcolm Edgar made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        David Frizelle created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development