-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have created a MyGroupModelList class by extending the AbstractGroupsModel class. I want first group present in MyGroupModelList should be expanded and remaining all other groups should be collapsed.
On View model I have written Below. private MyGroupModelList <tabdata> summaryGroupModel;
@AfterCompose
public void afterCompose(@ContextParam(ContextType.VIEW) Component view){
summaryGroupModel = getSummaryTabData(folderRSN);
if (summaryGroupModel != null && summaryGroupModel.getGroupCount() > 0) {
summaryGroupModel.addOpenGroup(0);
}
On ZUL file I have written Below.
<zk>
<window width="100%" height="100%"
apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('com.test.MyGroupModelList ')">
<listbox model="@bind(vm.summaryGroupModel.groupModel)">
<listhead>
<listheader label="Bill Number"></listheader>
<listheader label="Bill Amount"></listheader>
</listhead>
<template name="model" var="Data">
<listitem>
<listcell>
<label value="@load(Data.billNumber)" />
</listcell>
<listcell>
<label value="@load(Data.billAmount)" />
</listcell>
</listitem>
</template>
</listbox>
</window>
</zk>
Above code is not expanding first group present in MyGroupModelList.
Please help
This question answered Stackoverflow forum
Asked: 2013-06-27 09:25:00 +0800
Seen: 39 times
Last updated: Jul 01 '13
composite component help [closed]
EL in a forEach @command not working?
Different template for each grid row
Cardlayout animation is broken
Grid RowRender slow using 6.5.1 and sizable=true
setVisible(false), component will load or not
Decimalbox and doublebox value rounded on iPad
history management with page status