Set myDataGrid.dataProvider = [];

 

This assumes you are not binding directly to the data service result, but are instead using a result handler function to assign the dataProvider.  If the resultHandler sets a globla variable, to which your DG is bound, then set that variable to an empty array.

 

If you are binding directly to the lastResult object, don’t.

 

Tracy

 


From: [email protected] [mailto:[email protected]] On Behalf Of dsfhsdfjsdfj
Sent: Wednesday, October 11, 2006 3:58 PM
To: [email protected]
Subject: [flexcoders] Clearing or resetting a datagrid bound to a web service

 

I have a simple form in flex, and I am coding a reset button. To
populate my datagrid, I use a CFC based webservice that returns a
query. I need to be able to clear that datagrid when the user presses
the reset button. Any suggestions?

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to