Re: [flexcoders] itemRenderer ComboBox

2009-01-03 Thread Manish Jethani
On Sat, Jan 3, 2009 at 1:15 AM, Mike Oliver moli...@corenttech.com wrote: Perhaps its because it is an itemEditor, but just tried it and value in the editorDataField saves the label string to the Grid, not the 'data' element. Well, the value property is a little strange indeed. Not to mention

Re: [flexcoders] itemRenderer ComboBox

2009-01-03 Thread Mike Oliver
Yes that's what it takes, thanks! I used an itemRenderer to set the display to the label from the lookup source for the data that was stored. Manish Jethani wrote: Here's what I suggest: /* in your item editor */ public function get myCustomProperty():Object { var

Re: [flexcoders] itemRenderer ComboBox

2009-01-02 Thread Mike Oliver
Ok, so the itemEditor = ComboBox with the above Override and here it is as it stands and works (up to a point). mx:DataGridColumn headerText=Reason Stopped dataField=reason_med_stopped_oidCol editorDataField=selectedItem mx:itemEditor mx:Component

Re: [flexcoders] itemRenderer ComboBox

2009-01-02 Thread Manish Jethani
On Sat, Jan 3, 2009 at 12:16 AM, Mike Oliver moli...@corenttech.com wrote: [snip] and that saves to the database, all great...however, the editorDataField=selectedItem puts [object Object] into the Grid instead of the data element. I tried editorDataField=selectedItem.data but that fails.

Re: [flexcoders] itemRenderer ComboBox

2009-01-02 Thread Mike Oliver
Perhaps its because it is an itemEditor, but just tried it and value in the editorDataField saves the label string to the Grid, not the 'data' element. Ollie Manish Jethani wrote: On Sat, Jan 3, 2009 at 12:16 AM, Mike Oliver moli...@corenttech.com wrote: [snip] and that saves to the

Re: [flexcoders] itemRenderer ComboBox

2009-01-01 Thread Mike Oliver
it looks to me like it is better to use a label function to render the display value and leave the combo box for itemEditor. That still leaves the question on how the ComboBox will display the Option Label when in edit mode. -- View this message in context:

Re: [flexcoders] itemRenderer ComboBox

2009-01-01 Thread Manish Jethani
On Fri, Jan 2, 2009 at 3:59 AM, Mike Oliver moli...@corenttech.com wrote: it looks to me like it is better to use a label function to render the display value and leave the combo box for itemEditor. That still leaves the question on how the ComboBox will display the Option Label when in edit

Re: [flexcoders] itemRenderer ComboBox

2009-01-01 Thread Mike Oliver
Thanks, so this script would go within the mx:ComboBox... /mx:ComboBox Right? Manish Jethani wrote: On Fri, Jan 2, 2009 at 3:59 AM, Mike Oliver moli...@corenttech.com wrote: it looks to me like it is better to use a label function to render the display value and leave the combo box

Re: [flexcoders] itemRenderer ComboBox

2009-01-01 Thread Manish Jethani
On Fri, Jan 2, 2009 at 6:09 AM, Mike Oliver moli...@corenttech.com wrote: Thanks, so this script would go within the mx:ComboBox... /mx:ComboBox Right? Yes. Manish -- http://manishjethani.com