On Wed, Jul 30, 2008 at 10:29 PM, Tom Chiverton
<[EMAIL PROTECTED]> wrote:
> On Wednesday 30 Jul 2008, Joshua Jackson wrote:
>> I've got a list of data displayed in a datagrid where the DataProvider
>> is from Spring as the backend. Now everytime I add, update or delete
>> data, it doesn't refresh the datagrid. How do I do this in Flex?
>
> Do you want your application to notice automatically that something has
> changed on the server's database ? If so, BlazeDS is your friend.

How do we do this with BlazeDS? I'm currently using BlazeDS. Is there
any configuration for notifying the apps that something has changed on
the database?

>> I've tried doing
>> - dataProvider.refresh();
>> - dataGrid.dataProvider.dispatchEvent(new
>> CollectionEvent(CollectionEvent.COLLECTION_CHANGE));
>
> Or do you mean that you are removing items from the ArrayCollection that is
> set as the dataprovider, in which case as long as you wrote
> dataProvider="{myAC}"
> it should Just Work.

Yes, but the dataProvider is data from the database. Instead of
ArrayCollection that is set on the client.

-- 
Setting a new landmark.

Blog: http://joshuajava.wordpress.com/

Reply via email to