Sort for multipage
12 Jul 2011 09:32:48 GMT
13 Jul 2011 13:42:36 GMT
13 Jul 2011 13:42:36 GMT
Hi Alex,
Have you tried using the component grid?
zul
<grid>
...
<colums>
<column label="User" valign="middle" width="40%" align="left" sort="auto(txLongName)" />
</columns>
...
java
public class Person {
private Long idPerson;
private String txLongName;
....
14 Jul 2011 08:47:15 GMT
14 Jul 2011 08:47:15 GMT
Hi marcioshida,
i can't tried use the grid component I must modify a tool that use the listbox.
But i have solve the problem implement manualy the sort.
Thank you for the answer.
ZK - Open Source Ajax Java Framework
Hi,
i have a problem, must sort the rows of listbox click on listhead.
The rows are on more page, i manage the sort for each single page, but i must sort the rows cosider all pages.
I have definite :
//Definition listbox Listheader h = new Listheader(); h = new Listheader(label); h.setSort("auto"); h.setSortAscending(new MyItemComparator(label,true)); h.setSortDescending(new MyItemComparator(label,false));where MyItemComparator implements Comparator, and i rewrite the method public int compare(Object o1, Object o2) .
In this way i can sort the rows of a page, but not cosider the rows the other pages.
I want not manage the event onSort for sort the rows manualy.
Thank you
Alex