I think internally the List/DataGrid ends up treating them the same, go ahead and use updateAll.

 

Matt

 


From: viraf_bankwalla [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 10, 2005 4:42 PM
To: [email protected]
Subject: [flexcoders] DataProvider Events (filterModel or updateAll)


My question is when should I use the filterModel vs the updateAll. 
I have a filtered DataProvider that extends an Array.  When a filter
is applied, it uses the Array functions splice(0) to remove the
elements from the Array and then populates it using push().  When
this is done I want to trigger the appropiate event (not sure if it
is filterModel or updateAll).

Any siggestions on what I should be using ?  I am using the array
functions rather than the dataProvider functions removeAll, addItem
as I do not want to trigger a set of events while I am updating the
data provider.  An alternative would be to simple create and
populate a new DataProvider.




Yahoo! Groups Links

Reply via email to