org.zkoss.zul.listbox.autoSort"
From Documentation
Jimmyshiau (talk | contribs) (Created page with "{{ZKConfigurationReferencePageHeader}} '''Property:''' org.zkoss.zul.listbox.autoSort Default: false [Since 5.0.7] Specifies whether to sort the model when the following cas...") |
|||
Line 10: | Line 10: | ||
*<javadoc method="setSortDirection(String)">org.zkoss.zul.Listheader</javadoc> is called. | *<javadoc method="setSortDirection(String)">org.zkoss.zul.Listheader</javadoc> is called. | ||
*Model receives <javadoc>org.zkoss.zul.event.ListDataEvent</javadoc>and <javadoc method="setSortDirection(String)">org.zkoss.zul.Listheader</javadoc> is set. | *Model receives <javadoc>org.zkoss.zul.event.ListDataEvent</javadoc>and <javadoc method="setSortDirection(String)">org.zkoss.zul.Listheader</javadoc> is set. | ||
− | If you want to ignore sort when receiving <javadoc>org.zkoss.zul.event.ListDataEvent</javadoc>, you can | + | If you want to ignore sort when receiving <javadoc>org.zkoss.zul.event.ListDataEvent</javadoc>, you can specify the value as '''ignore.change'''. |
If you prefer to configure a particular component, you could specify it as the custom attribute of the component or any of its ancestor components. | If you prefer to configure a particular component, you could specify it as the custom attribute of the component or any of its ancestor components. |
Revision as of 01:12, 8 August 2011
Property:
org.zkoss.zul.listbox.autoSort
Default: false [Since 5.0.7]
Specifies whether to sort the model when the following cases:
- Listbox.setModel(ListModel) is called and Listheader.setSortDirection(String) is set.
- Listheader.setSortDirection(String) is called.
- Model receives ListDataEventand Listheader.setSortDirection(String) is set.
If you want to ignore sort when receiving ListDataEvent, you can specify the value as ignore.change.
If you prefer to configure a particular component, you could specify it as the custom attribute of the component or any of its ancestor components.
<listbox>
<custom-attributes org.zkoss.zul.listbox.autoSort="true"/>
...
Version History
Version | Date | Content | 5.0.7 | April 2011 | Listbox shall sort model based on current state. |
---|