Avatar of royjayd
royjayd
 asked on

auto-refresh DataGrid on editItem Changed

hi guys

In my scenario i have 2 text boxes and a table with data (4 columns) .I am using datagrid

screen
column1  column2  column3   column4



Enter text1:                  Enter text2:
             Submit Button

When text1 OR text2 are entered the screen (column1,  column2,  column3 ,  column4)  should automatically get refreshed (by making backend call) without clicking on Submit button. how does flex do that?
I am using <mx:remoteObject> to call  my server side objects.
thanks
Apache Flex

Avatar of undefined
Last Comment
royjayd

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
dgofman

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
royjayd

ASKER
hi
two questions
i dont see the text boxes in your code ? If i change somehting in the textboxes  the datagrid should automatically change.

itemEditEnd in datagrid makes the asynchronous call?

thanks
dgofman

Yes! editEndHandler will make a call
royjayd

ASKER
ok got it
but what invokes editEndHandler ?  
>>>itemEditEnd="editEndHandler(event)">

thx
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
dgofman

of cource
itemEditEnd="editEndHandler(event)">
royjayd

ASKER
<mx:DataGrid dataProvider="{collection}" editable="true" itemEditEnd="editEndHandler(event)">
<mx:columns>
<mx:DataGridColumn headerText="Code"   dataField="code" editable="true"/>
<mx:DataGridColumn headerText="Description" dataField="description"    editable="true"/>
</mx:columns>
</mx:DataGrid>

so when i change the data in 'code' box or 'description' box editEndHandler is automatically called? but how does it call? I dont see a 'click' attribute (or some other attribute) which makes the call to editEndHandler ?

thx