-
FEATURED COMPONENTS
First time here? Check out the FAQ!
dear, i can only program with simple mvc and can't do with mvvm
I have grid-no-effect and button in out of grid.
1. When i click this button i need to generate another combox, textbox and button in another row
<button id="btnGenRow" ></button> <grid sizedByContent="true" sclass="grid-no-effect" style="background: none;" oddRowSclass="none"> <columns vflex="1" > <column style="min-width:240px" align="left" ></column> <column style="min-width:200px" align="left" ></column> <column style="min-width:120px" align="center" ></column> </columns> <rows id="attachRows" > <row > <combobox id="cmbAttachType" style="min-width: 100px" /> <textbox id="txtAttachname" style="min-width: 120px" /> <button id="btnSelectAttach" width="90px" /> </row> </rows> </grid>
i try some kind of this. but it doesn't work.
for (Rows r: attachRows) { for (Component component : r.getChildren()) { Row row = (Row) component; row.appendChild(new Label("hello")); r.appendChild(row); } }
any idea how? please
Asked: 2012-12-13 04:10:11 +0800
Seen: 80 times
Last updated: Dec 13 '12