2 Replies Latest reply on Sep 29, 2009 11:44 AM by anu3000

    datagrid and combo box

    anu3000

      How do i access  "Friendly Name" value [It is a Textinput] ,

      "Category" [Combo box] value from the following datagrid

       

      ------------------------------------------------------------------------------------------ ----------------------------
         <mx:DataGrid id="listFiles" width="100%" height="100%
        allowMultipleSelection="true" verticalScrollPolicy="on"
        draggableColumns="false" resizableColumns="false" sortableColumns="false">
        <mx:columns>
          <mx:DataGridColumn headerText="Friendly Name">
          <mx:itemRenderer>
            <mx:Component>
                           <mx:TextInput/>
            </mx:Component>
          </mx:itemRenderer>
          </mx:DataGridColumn>
         
          <mx:DataGridColumn headerText="Category" width="100">
          <mx:itemRenderer>
            <mx:Component>
            <mx:ComboBox dataProvider="{outerDocument.fileCategoryList}"
              prompt="Select" labelFunction="{outerDocument.categoryList}" width="70"/>
            </mx:Component>
          </mx:itemRenderer>
          </mx:DataGridColumn>

          <mx:DataGridColumn headerText="File Name" dataField="name" width="100" wordWrap="true" dataTipField="name" showDataTips="true"/>
          <mx:DataGridColumn headerText="File Size" dataField="size" width="75" textAlign="right" dataTipField="size" showDataTips="true"/>
        </mx:columns>
        </mx:DataGrid>

      ------------------------------------------------------------------------------------------ --------------------------