Is it possible to change the sort order for a drop down list

  • 5 September 2012
  • 3 replies
  • 9 views

Badge +1

The default sort order is the displayed value. I need to display a list loaded from a SQL table by a smart object in a fixed order. A simple example woult be if I were populating a list using the days of the week where I would like the listed in order from Sunday to Saturday. By default, the DDL would start with Friday rather than Sunday.


I have another smart object property (not displayed) that I would rather use to sort the list.


Thanks.


3 replies

Badge +9


Whiles designing the View you basically bind the dropdown to
the SmartObject, at that time you have no option to set the ordering of the
items, however the Init event for that view will contain a rule (auto generated
because you bound the control to the SmartObject) that will execute the SmartObject,
by editing the rule you can specify the ordering and that will determine the
order of the items in the dropdown.


Let me know if you have more question regarding
this.

Badge +1

Thanks. That was exactly what I was looking for.

Badge +1
Brilliant. Thank you.

Reply