Expand first group and collapse remaining group by default.

asked 2013-06-27 09:25:00 +0800

iamsudhir4u gravatar image iamsudhir4u flag of India
545 7

updated 2013-06-28 13:04:57 +0800

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;

    public void afterCompose(@ContextParam(ContextType.VIEW) Component view){    
    summaryGroupModel = getSummaryTabData(folderRSN);

    if (summaryGroupModel != null && summaryGroupModel.getGroupCount() > 0) {

On ZUL file I have written Below.

    <window width="100%" height="100%"
        viewModel="@id('vm') @init('com.test.MyGroupModelList ')">

        <listbox model="@bind(vm.summaryGroupModel.groupModel)">

                <listheader label="Bill Number"></listheader>
                <listheader label="Bill Amount"></listheader>


            <template name="model" var="Data">
                        <label value="@load(Data.billNumber)" />
                        <label value="@load(Data.billAmount)" />


Above code is not expanding first group present in MyGroupModelList.

Please help

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-07-01 06:51:32 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8

This question answered Stackoverflow forum

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2013-06-27 09:25:00 +0800

Seen: 36 times

Last updated: Jul 01 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More