IDEMPIERE-4396 Allow idempiere forms sort by header (#205)
sync model after sort
This commit is contained in:
parent
fc0c7ed81c
commit
a3e25375fe
|
@ -1127,6 +1127,9 @@ public class WListbox extends Listbox implements IMiniTable, TableValueChangeLis
|
||||||
&& (event.getFirstRow() == WTableModelEvent.ALL_ROWS))
|
&& (event.getFirstRow() == WTableModelEvent.ALL_ROWS))
|
||||||
{
|
{
|
||||||
this.repaint();
|
this.repaint();
|
||||||
|
//sync model with listbox
|
||||||
|
ListModelTable model = this.getModel();
|
||||||
|
model.updateComponent(0, model.getSize()-1);
|
||||||
}
|
}
|
||||||
else if ((event.getType() == WTableModelEvent.CONTENTS_CHANGED)
|
else if ((event.getType() == WTableModelEvent.CONTENTS_CHANGED)
|
||||||
&& event.getFirstRow() != WTableModelEvent.ALL_ROWS
|
&& event.getFirstRow() != WTableModelEvent.ALL_ROWS
|
||||||
|
|
Loading…
Reference in New Issue