-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am using gridComments below and I need to reset this grid when a new employee selection is made:
<window id="empComment"> <groupbox id="gbComments" mold="3d"> <!--<style src="/widgets/layout/group_box/sprite.css.dsp" />--> <!--<attribute name="onOpen"><![CDATA[arrow.setSclass("open-" + self.isOpen());]]></attribute>--> <caption label="Comments"> <button id="commentAdd" label="+"/> </caption> <grid id="gridComments" sclass="myStyle"> <columns> <column id="pwricmt_comment" label="Comment"/> <column id="pwricmt_activity_date" label="Date/Time" /> <column id="pwricmt_user_id" label="User ID"/> </columns> <rows id="gridRows"> <row> </row> </rows> </grid> </groupbox> </window>
I am trying to use the following code to reset the grid, however this will not work when the grid is null, so I must check for an empty grid before I try to reset it:
empComments_gridComments.getChildren().clear()
Thanks for any help!
Asked: 2011-12-09 16:18:32 +0800
Seen: 140 times
Last updated: Dec 09 '11