javasortinglistboxzk

ZK Listheader set sort programmatically


I have a listheader like this

<listheader id='lh3' label="Quantity" sort="auto(lower(value))"/>

I need to remove the sort sometime I have use this method.

final Listheader header = .....
header.setSort(null);

But it stills have the sort attribute I cannot get the sort because the header doesn't have a getSort() method this is a kind of weird!

I am doing it all wrong? What can I do to remove the sort attribute programmatically.


Solution

  • The sort attribute can be a field, an expression, or "none".

    So just try this :

    final Listheader header = .....
    header.setSort("none");