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-03 Thread Manish Jethani
On Sat, Jan 3, 2009 at 1:15 AM, Mike Oliver 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 it's also deprecat

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 > wrote: > > [snip] >> and that saves to the database, all gr

Re: [flexcoders] itemRenderer ComboBox

2009-01-02 Thread Manish Jethani
On Sat, Jan 3, 2009 at 12:16 AM, Mike Oliver 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. I tried "va

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).

Re: [flexcoders] itemRenderer ComboBox

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

Re: [flexcoders] itemRenderer ComboBox

2009-01-01 Thread Mike Oliver
Thanks, so this script would go within the Right? Manish Jethani wrote: > > On Fri, Jan 2, 2009 at 3:59 AM, Mike Oliver > 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 t

Re: [flexcoders] itemRenderer ComboBox

2009-01-01 Thread Manish Jethani
On Fri, Jan 2, 2009 at 3:59 AM, Mike Oliver 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 mode. The ComboB

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: http://www.nabble.com/itemRenderer-

[flexcoders] itemRenderer ComboBox

2009-01-01 Thread Mike Oliver
I want to use a ComboBox as an itemRenderer and itemEditor. here is the