org.zkoss.zul.grid.autoSort
Property:
org.zkoss.zul.grid.autoSort
Default: false
[Since 5.0.7]
Specifies whether to sort the model when the following cases:
- org.zkoss.zul.Grid#setModel(ListModel)is called and org.zkoss.zul.Column#setSortDirection(String) is set.
- org.zkoss.zul.Column#setSortDirection(String) is called.
- Model receives
org.zkoss.zul.event.ListDataEvent
and org.zkoss.zul.Column#setSortDirection(String) is set.
If you want to ignore sort when receiving
org.zkoss.zul.event.ListDataEvent
, you can specify
the value to be 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.
<grid>
<custom-attributes org.zkoss.zul.grid.autoSort="true"/>
...
Version History
Version | Date | Content |
---|---|---|
5.0.7 | April 2011 | Grid shall sort model based on current state. |