PickList irritation
Posted: 08 Jul 2010, 16:18
Would it be possible to make the pick list maintain the source and target columns in alphabetical order or better to use arbitary (server side) sorting?
Looking at the simple pick list example, when the page first loads the source order is: Istanbul, Ankara, Izmir, Antalya, Bursa. Move Istanbul to the target list and back to the source list and the order becomes: Ankara, Izmir, Antalya, Bursa, Istanbul. That's fine for a pick list of a few items but by the time you start getting 20 or more having them ordered, and remain ordered, is important.
What I have noticed it DualListModel.getSource is only called once when the pick list is first created, that's a shame because it looks like it would be a great place to put server side sorting.
Looking at the simple pick list example, when the page first loads the source order is: Istanbul, Ankara, Izmir, Antalya, Bursa. Move Istanbul to the target list and back to the source list and the order becomes: Ankara, Izmir, Antalya, Bursa, Istanbul. That's fine for a pick list of a few items but by the time you start getting 20 or more having them ordered, and remain ordered, is important.
What I have noticed it DualListModel.getSource is only called once when the pick list is first created, that's a shame because it looks like it would be a great place to put server side sorting.