开发者

How to update automatically data from datagrid in flex2?

开发者 https://www.devze.com 2023-01-03 07:44 出处:网络
Here is the problem: I have datagrid binded with data acquired from web service which, as you may suspe开发者_如何学编程ct, retrieves data from some db. Datagrid has some editable columns and I want

Here is the problem:

I have datagrid binded with data acquired from web service which, as you may suspe开发者_如何学编程ct, retrieves data from some db. Datagrid has some editable columns and I want to update db through appropriate web service call without adding button "Update" as a last column in datagrid.

How can I do this? Is there any event which I should listen?

Thanks in advance, D


Look into the itemEditor events. I would probably add a listener to itemEditEnd to update your database via some remote service.

http://livedocs.adobe.com/flex/3/langref/mx/controls/DataGrid.html#event:itemEditEnd

0

精彩评论

暂无评论...
验证码 换一张
取 消