Calling removeAll() on the dataProvider of the DataGrid seems to work for me. What kind of dataProvider are you using? I was using an ArrayCollection in the small example that I tried out. Can you provide more information? Maybe there is a bug in this method when used in particular situations. Can you confirm that you are using the final version of Flex 2?

 

Thanks,

Joan

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman
Sent: Tuesday, July 11, 2006 10:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Removing all items from a DG

 

I am working with a dg that holds parties attached to a particular
file, and when all the information for the file is filled in and the
user clicks save, I have added this to the save fucnction.

partyDG.dataProvider.removeAll();

This is how I have always cleared out a dg, but not for some reason it
is not working, and I can not find any changes with in the flex
livedocs to tell me that it is any different from what I have always
used.

Anyone have an idea on why this isnt working?

__._,_.___

--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to