I have noticed that if you set the editedItemPosition first (on an
editable datagrid), it takes two hits on the tab key to trigger the
datagrid itemEditEnd event. I'm sure it should trigger straight away.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
     
      <mx:Text text="test1 - edits cells directly and 'tab' out"
color="yellow" width="50%"/>
      <mx:Text text="test2 - click 'edit' and then edit cell 
and 'tab' out" color="yellow" width="50%"/>
      <mx:DataGrid id="dg" itemEditEnd="out.text+='itemEditEnd\n'"
editable="true">
            <mx:columns>
                  <mx:Array>
                        <mx:DataGridColumn dataField="one"/>
                        <mx:DataGridColumn dataField="two"/>
                        <mx:DataGridColumn
dataField="three"/>
                  </mx:Array>
            </mx:columns>
            <mx:dataProvider>
                  <mx:Object two="b" three="c"/>
                  <mx:Object two="e" three="f"/>
                  <mx:Object two="h" three="i"/>
            </mx:dataProvider>
      </mx:DataGrid>
      <mx:Button label="edit" click="dg.editedItemPosition=
{columnIndex:1, rowIndex:1}" />
      <mx:TextArea id="out" width="40%" height="110"/>
     
</mx:Application>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to