tags:

views:

318

answers:

3

hi, i am working on an aplication using flex,adobe air...i have a datagrid with a XML as my dataprovider...during the execution of program my XML is updated....after XMl is updated and saved my datagrid should also get update ......I have used
Dataprovidername.refresh() method but it is not working.......please help me in this

Thanks to every one............

A: 

Did you make the XML-variable Bindable?:

[Bindable]
private var data:XML...
Pbirkoff
Yes i have made my XMLListCollection Bindable...
Hara Chaitanya
A: 

after updating the data, try dispatching a collection change event manually:

datagrid.dataProvider.dispatchEvent( new CollectionEvent.COLLECTION_CHANGE() );
Ryan Guill
Thanks for replying, i have solved the problem myself.
Hara Chaitanya
A: 

I have solved my problem of refreshing data grid when data-provider XML is changed....

instead of saving the XML document and loading it to the data-grid data provider i assigned the updated XML Document to the data-provider as a new provider..In this way the refreshing problem, with binding can be solved.

Hara Chaitanya