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
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
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
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.
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
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:
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
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
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
9 matches
Mail list logo