-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a listbox with a SimpleGroupsModel set. When I select some items from a given group and click on the group's header to close it then it makes the items unselected when I run myList.getSelectedItems(). When I open the group again the items are selected again. So my questions are:
Why the heck we have that weird behavior on Grouped lists and why there isn't a property in the Listgroup class like 'setClosable(boolean)'? This is impossible that only me is looking for such behavior.
Is there a way to freeze the Listgroup headers to prevent them to be closed?
Thank you,
Gyo
Hi, selected item information is store at model, refer to http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/AbstractListModel.html#addToSelection%28E%29
so, how do you unselect items, can you provide runnable sample code?
Asked: 2013-07-27 21:40:47 +0800
Seen: 12 times
Last updated: Sep 10 '13