1 Reply Latest reply on Mar 1, 2010 12:19 PM by rgadiparthi

    Please help troubleshoot where the itemRenderer problem is.

    rreward Level 1

      I have a inline datagrid ComboBox itemrenderer, everything works fine except the one: When I select from ComboBox dropdown list and store datagrid record into database, it always captures and stored the value of displayName(i.e. Open, Close,...)  rather than statusCode(O, C, P, ...) which is what I expected, anyone can tell where I am wrong? How can I capture and set the datagrid column(Status) to abbreviated statusCode? What am I missing?

      part of the code listed here:

        <fx:Component id="statusInlineEditor">
         <mx:ComboBox labelField="displayName">
          <mx:dataProvider>
           <s:ArrayList>
            <fx:Object displayName="Open" statusCode="O"/>
            <fx:Object displayName="Closed" statusCode="C"/>
            <fx:Object displayName="Pending" statusCode="P"/>
           </s:ArrayList>
          </mx:dataProvider>
         </mx:ComboBox>
        </fx:Component>
       

         <mx:DataGrid id="myDG" editable="true" dataProvider="{myDataProvider}">
          <mx:columns>
           <mx:DataGridColumn headerText="Id" dataField="id"/>
           <mx:DataGridColumn headerText="Task" dataField="task"/>
          <mx:DataGridColumn headerText="Status" dataField="statusCode" itemEditor="{statusInlineEditor}"/>
          </mx:columns>
         </mx:DataGrid>
        

      Thanks for any help!