8 Replies Latest reply on Feb 2, 2011 4:05 AM by Zolotoj

    Spark DataGrid - editing session

    Zolotoj Level 3

      I am trying to specidy a listener to catch a data change in Spark DataGrid. Here is my code:

      <s:DataGrid requestedRowCount="4" fontSize="11" sortableColumns="false"
                                         id="engines" rowHeight="22" gridItemEditorSessionStarting="processData(event)" 
                                         height="100%">
                               <s:columns>
                                    <s:ArrayList>
                                         <s:GridColumn dataField="initial" headerText="Initial" width="50">
                                              <s:itemRenderer>
                                                   <fx:Component>
                                                        <s:GridItemRenderer>
                                                             <s:layout>
                                                                  <s:VerticalLayout paddingLeft="2" 
                                                                                        verticalAlign="middle"/>
                                                             </s:layout>
                                                             <s:TextInput restrict="a-zA-Z"/>
                                                        </s:GridItemRenderer>
                                                   </fx:Component>
                                              </s:itemRenderer>
                                         </s:GridColumn>
      ....
      

       

      but processData does not get fired.

       

      Any idea?