0

値が事前定義された ArrayCollection があります。arrayCollection 内の項目に新しい値を割り当てたいと考えています。この新しい値は、datagrid ItemEditEnd の後に定義されます。

private var tabRV :Array=[
                {thevalue:"25",height:"115",col:"foo"},
                {thevalue:"45",height:"115", col:"foo"},
                {thevalue:"15",height:"115",col:"bb"},
                {thevalue:"95",height:"115", col:"aa"},
                ];

    [Bindable] 
    public var acRDV:ArrayCollection=new ArrayCollection(tabRV);

私のItemEditEndは、次のようになります。

private function getCellInfo(event:DataGridEvent):void {


            // Get the new value from the editor.
            var newVal:String = event.currentTarget.itemEditorInstance.htmlText;

            // Get the old value.
            var oldVal:String = 
                event.currentTarget.editedItemRenderer.data[event.dataField]; 
            DP_LISTEREDVCLI[event.rowIndex].thevalue=newVal;
            DP_LISTEREDVCLI[event.rowIndex].col=1;
            trace("xml new val "+DP_LISTEREDVCLI[event.rowIndex].[event.columnIndex]+"/"+DP_LISTEREDVCLI[event.rowIndex].[DP_LISTEREDVCLI.length]);


        } 

汎用関数 DP_LISTEREDVCLI[event.rowIndex][event.columnIndex] を作成したいと思っていますが、機能しません。実際、この場合、新しい属性が [event.columnIndex value] を作成しています。

助けてくれてありがとう

4

0 に答える 0