Adobe Dreamweaver Forums



Last 10 THreads :         Basing new project on old project (Last Post : Stephen Windham - Replies : 2 - Views : 3 )           »          Performing a search within multiple .as files (Last Post : JohnnyDang - Replies : 0 - Views : 1 )           »          Conditional loop (Last Post : BKBK - Replies : 1 - Views : 2 )           »          change of state (Last Post : Mainmanian - Replies : 2 - Views : 3 )           »          Performing a search within multiple .as files (Last Post : JohnnyDang - Replies : 0 - Views : 1 )           »          Please point me to the correct topic section of thisForum (Last Post : GillyWilly - Replies : 4 - Views : 5 )           »          Writing a Dreamweaver Extension, where to start? (Last Post : ryodoan - Replies : 0 - Views : 1 )           »          pop up blocker jacking my login (Last Post : JoeyD1978 - Replies : 1 - Views : 2 )           »          Can't upload selected pdf's to remote server (Last Post : DontTazeMeBro - Replies : 5 - Views : 6 )           »          Video page not opening from link. (Last Post : Mad Dog - Replies : 4 - Views : 5 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 10-01-2008, 02:59 PM
thejavafreak
 
Posts: n/a
Diggs:
Default Clearing out List's data

dear all,

I have got a List component that has data in it. But I want to clear the data
in it. How do we do this in Flex? Has anyone got any experience with this? I
tried using list.dataProvider = null but it doesn't work. Could anyone give me
a hint and clue about this please?

Many thanks



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-01-2008, 02:59 PM
ntsiii
 
Posts: n/a
Diggs:
Default Re: Clearing out List's data

If your List's dataProvider is a collection, you can call removeAll(). this will also cause your UI to update automaticallu.

Tracy
Reply With Quote
  #3 (permalink)  
Old 10-01-2008, 02:59 PM
ntsiii
 
Posts: n/a
Diggs:
Default Re: Clearing out List's data

If your List's dataProvider is a collection, you can call removeAll(). this will also cause your UI to update automaticallu.

Tracy
Reply With Quote


  #4 (permalink)  
Old 10-01-2008, 02:59 PM
ntsiii
 
Posts: n/a
Diggs:
Default Re: Clearing out List's data

If your List's dataProvider is a collection, you can call removeAll(). this will also cause your UI to update automaticallu.

Tracy
Reply With Quote
  #5 (permalink)  
Old 10-01-2008, 02:59 PM
theLoggerGuy
 
Posts: n/a
Diggs:
Default Re: Clearing out List's data

How about list.dataProvider = new ArrayCollection( );

You could also clear the data provider itself. For example if your dp is an
ArrayCollection you can go:
( list.dataProvider as ArrayCollection ).removeAll( );

Reply With Quote
  #6 (permalink)  
Old 10-01-2008, 02:59 PM
theLoggerGuy
 
Posts: n/a
Diggs:
Default Re: Clearing out List's data

How about list.dataProvider = new ArrayCollection( );

You could also clear the data provider itself. For example if your dp is an
ArrayCollection you can go:
( list.dataProvider as ArrayCollection ).removeAll( );

Reply With Quote


  #7 (permalink)  
Old 10-01-2008, 02:59 PM
theLoggerGuy
 
Posts: n/a
Diggs:
Default Re: Clearing out List's data

How about list.dataProvider = new ArrayCollection( );

You could also clear the data provider itself. For example if your dp is an
ArrayCollection you can go:
( list.dataProvider as ArrayCollection ).removeAll( );

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 07:14 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk