-
FEATURED COMPONENTS
First time here? Check out the FAQ!
hi
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)">
<columns>
<column label="id" />
<column label="Country" />
<column label="" />
</columns>
<template name="model">
<row>
<label value="@load(each.id)"></label>
<label value="@load(each.country)"></label>
<div>
<grid model=???>
<columns>
<column label="city" />
</columns>
<template name=??? ">
<row>
<label value="???"></label>
</row>
</template>
</grid>
</div>
</row>
</template>
</grid>
/div> "
but I don't now how to populate data in inner grid
mine 100's answer :)
Take a look at mine last answer on this topic(full example with a specific notifychanged) :
http://forum.zkoss.org/question/90188/notifychange-to-grid-that-is-inside-a-row-of-another-grid/#90284
Greetz chill.
Asked: 2014-02-11 15:05:19 +0800
Seen: 10 times
Last updated: Feb 11 '14