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
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.
yes i agree that the amount of data does not matter , and yes the item {Est_Mandob} correspond to an item found in the Combobox's dataProvider
i copyed the code of the custom componant and i created an aplication to take a look of it , this is the link
http://msmdk.selfip.com:8500/newexp/bin/Dispatching_test.html
the idea of this aplication that any of this records should be updated and removed from the datagrid if the user chose the Est_mandob field
and all this records have its est_mandob but only 2 or 3 at the top of records have the correct est_mandobe wetch exist in the CB dataprovider but the rest records needs to be updated
North America
Europe, Middle East and Africa
Asia Pacific