flex datagrid列修改后如何捕捉及触发

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 .

  1. itemEditBeginning 
  2. itemEditBegin
  3. itemEditorCreate       -->trigger when the editor is created
  4. 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);

猜你喜欢

转载自k1280000.iteye.com/blog/1166392
今日推荐