-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I can't find a method that clears all rows from a grid.... is there?
I would remove the rows component and I would replace it with e new one, or, if you use a Model, simply replace the model with an empty one.
Look the following example:
<window title="My First Window" border="normal" width="200px"> <vbox> <grid id="mygrid"> <columns> <column label="COL1"/> </columns> <rows id="gridRows"> <row> ROW1 </row> <row> ROW2 </row> </rows> </grid> <button label="Click Here"> <attribute name="onClick"> mygrid.removeChild(gridRows); gridRows = new Rows(); gridRows.setParent(mygrid); </attribute> </button> </vbox> </window>
Asked: 2008-11-10 08:10:52 +0800
Seen: 250 times
Last updated: Nov 11 '08