-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Good day, everyone.
<listbox id="paymentsList" fixedLayout="true"> <listhead> <listheader label="Number" width="40px" /> <listheader label="Account" width="100%"/> <listheader label="Sum" width="100px"/> <listheader label="Paydate" width="100px"/> <listheader label="" width="40px"/> </listhead> <listitem self="@{each=payment}" > <listcell label="@{self.parent.index}"/> <listcell label="@{payment.account.account}"/> <listcell label="@{payment.pay}"/> <listcell> <datebox value="@{payment.payDate}" width="75px" /> </listcell> <listcell> <button image="/images/delete 16.png" /> </listcell> </listitem> </listbox>
This listbox gets model from java code. I want column named "Number" contains 1-based index of listitem, but
listcell label="@{self.parent.index}"/>
which is the way to do it in grid?
Asked: 2010-05-12 16:06:56 +0800
Seen: 792 times
Last updated: Jul 22 '10