A.
FLEX's datagrid have below properties to catch the event of the modify of the datagrid (the editable is true).
itemEditBegin="dg_itemEditBeginHandler(event)"
itemEditBeginning="dg_itemEditBeginningHandler(event)"
itemEditEnd="dg_itemEditEndHandler(event)"
itemEditorCreate="dg_itemEditorCreateHandler(event)"
below is my test reslult :
the order of the trigger of the above four events .
- itemEditBeginning
- itemEditBegin
- itemEditorCreate -->trigger when the editor is created
- itemEditEnd -->after edit the data of the column
B.
if you use the datasource's listener to listen the modify :
.addEventListener(CollectionEvent.COLLECTION_CHANGE,function);
本文介绍了Flex数据网格的编辑事件触发顺序,并展示了如何通过数据源监听来响应数据修改。主要内容包括事件处理函数的定义与应用。
366

被折叠的 条评论
为什么被折叠?



