【发布时间】:2012-04-19 13:12:33
【问题描述】:
我正在尝试刷新数据网格以在用户更新数据库后反映更新的数据。那可能吗?我有以下代码:
脚本
protected function updataHandler(event:MouseEvent):void
{
updateJobsResult.token = Service.updateJobs(updateJobData);
//The database will be updated after users click the update button
//I want to update datagrid dataprovider to show the updated data.
}
<s:datagrid dataprovider="jobdata">
//jobdata comes from from database query
..................
..................
</datagrid>
<s:form>
//when user selects the row in datagrid, the cell values will
//pop in this form and user can update the form
.................
.................
</form>
<s:button click="updateHandler">
感谢您的帮助。
【问题讨论】:
标签: apache-flex datagrid flash-builder