Uploaded image for project: 'Click'
  1. Click
  2. CLK-154

Enhance PropertySelect control to allow ordering of option list.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • extras
    • 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.

      Attachments

        Activity

          People

            medgar Malcolm Edgar
            dfrizelle David Frizelle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: