Skip navigation
Currently Being Moderated

why there is no value in the combobox itemrenderer ??!!

Mar 19, 2010 8:26 PM

I use this code for rendering an item in dataGrid and its working fine

but whin i retrive the data in the datagrid there is data presinting the current value of the field

but i can see the combo box list of data lebels and i can select thim and i think if i want to save or update

it works

i am really dont know please help my code is

 

<mx1:DataGridColumn headerText="From_Name" dataField="From_Name"/>
                <mx1:DataGridColumn headerText="Est_Mandob" dataField="Est_Mandob" width="150"
                                    rendererIsEditor="true" editorDataField="selectedItem.User_Name">
                        <mx1:itemRenderer>
                            <fx:Component>
                                <mx1:ComboBox x="58" y="0" editable="true"
                                              dataProvider="{outerDocument.allUsers}"
                                              labelField="User_Name" >
             
                    </mx1:ComboBox>
                            </fx:Component>
                    </mx1:itemRenderer>

</mx1:DataGridColumn>

 

please Help

 
Replies
  • Currently Being Moderated
    Mar 20, 2010 12:12 PM   in reply to asaad970

    I'm not sure I understand the question.  I'm not sure that editorDataField

    can be a dot-expression.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 20, 2010 9:45 PM   in reply to asaad970

    I think the CB will be given the from_Name to display, but the dataprovider

    is full of usernames so it may not match up.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 21, 2010 3:50 AM   in reply to asaad970

    The amount of entries does not matter in your case.

     

    If you take your items one by one ( each item found in the dataGrid dataProvider ), does the item[ Est_Mandob ] correspond to an item found in the Combobox's dataProvider ?  Combobox's set data makes use of dataField when used within a dataGrid.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points