Grid in Grid please help

asked 2014-02-11 15:05:19 +0800

grzesiek gravatar image grzesiek flag of Poland
72 1 5

updated 2014-02-11 18:03:10 +0800

sitansu gravatar image sitansu
2254 13


it's only example but solution will be very helpful for me

public Class Country{

private int id;

private String country;

private List<city> cityList;

... }

public class City{

private int id;

private String city;

... }

public class CountryVM{


public List<country> countryList;



and I need show in one grid Countries and cities like below

div apply="org.zkoss.bind.BindComposer"

viewModel="@id('vm') @init('resources.CountryVM')">

<grid model="@load(vm.countryList)">


    <column label="id" />

    <column label="Country" />

    <column label="" />


    <template name="model">


       <label value="@load(each.id)"></label>

       <label value="@load(each.country)"></label>


        <grid model=???>

             <column label="city" />
           <template name=??? ">
               <label value="???"></label>

/div> "

but I don't now how to populate data in inner grid

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-02-11 18:44:49 +0800

chillworld gravatar image chillworld flag of Belgium
5357 4 9

mine 100's answer :)

Take a look at mine last answer on this topic(full example with a specific notifychanged) :


Greetz chill.

link publish delete flag offensive edit

answered 2014-02-11 21:58:10 +0800

grzesiek gravatar image grzesiek flag of Poland
72 1 5

Great, it's working,

Thank You Very Much

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: 2014-02-11 15:05:19 +0800

Seen: 10 times

Last updated: Feb 11 '14

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