Add a change event listener to the combo box and dispatch a custom event to the
owner to update the data provider.
--- In flexcoders@yahoogroups.com, jonbehr jonb...@... wrote:
I have a combobox as an itemEditor in a datagrid. I have an event listener on
the datagrid
Thank, this worked perfectly!
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:
Add a change event listener to the combo box and dispatch a custom event to
the owner to update the data provider.
--- In flexcoders@yahoogroups.com, jonbehr jonbehr@ wrote:
I have a
I have changed the combobox as a component instead of a drop in item editor and
now it works fine.
Thank you,
Goutham
--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:
You're trynig to set up binding statements to various properties. What if
you eliminate all of those binding
Hi,
any suggestions on this post
Thank you,
Goutham
--- In flexcoders@yahoogroups.com, Goutham goldensu...@... wrote:
Hi,
the field specified by the column in dataprovider for the datagrid is same as
the item in the dataprovider of the combobox
heres an example
dataprovider for
You’re trynig to set up binding statements to various properties. What if you
eliminate all of those binding expressions and let the default behavior run?
On 6/11/10 1:00 PM, Goutham goldensu...@yahoo.co.in wrote:
Hi,
any suggestions on this post
Thank you,
Goutham
--- In
If you got that error, you didn’t set it up correctly. What does your code
look like? You basically have to delegate to/from the Grid to the inner
ComboBox.
On 6/3/10 12:40 PM, Goutham goldensu...@yahoo.co.in wrote:
Hi Alex,
thank you, I tried it using an id for the combobox, gives me
Hi,
the field specified by the column in dataprovider for the datagrid is same as
the item in the dataprovider of the combobox
heres an example
dataprovider for datagird
{name: sample project, status_type: progress}
dataprovider for combobox
{hold,progress, closed}
the column field is
Hi
I am accessing the combobox with the id through
object.data = event.currentTarget.itemEditorInstance.foo.SelectedItem
it works fine, but the problem I have is, when I click on the combobox in the
gird, it defaults to the first item in the dataprovider for the combobox
combobox id=foo
The default behavior of a ComboBox in a DataGrid is to match the field
specified by the column to an item in the dataProvider.
If the dataProvider for the DataGrid contains:
{ firstName: “Alex”, lastName: “Harui”}
And the ComboBox dataProvider contains:
[ “Smith”, “Harui”, “Jones”]
And the
Hi Alex,
thank you, I tried it using an id for the combobox, gives me an error
Access of possibly undefined property foo through a reference with static type
mx.containers:Grid
and there is also another problem, when I click on the column in the datagrid,
the itemeditor changes to a combobox
Hi Alex,
There was a mistake in posting the code. However I am not using editorDataField
anymore. In the dataGrid my column is defined as given below and it is using
combobox component defined below the column code. It is working fine but I have
few questions/requirements.
a) I have four
Thanks for the response. Would this entail setting styles or the drodownWidth
property, or would I need to modify the factory? Is it possible to force the
direction the dropdown comes out of the ComboBox?
--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:
mx:ComboBox doesn't
I’d probably replace the factory with a subclass of List that handles scaling.
On 3/31/10 1:20 PM, elder.mich...@rocketmail.com michaer.sp...@gmail.com
wrote:
Thanks for the response. Would this entail setting styles or the drodownWidth
property, or would I need to modify the factory?
: [SPAM] RE: [flexcoders] Re: Combobox in Datagrid appears empty
Is there [Bindable] before var genreList:ArrayCollection?
Alex Harui
Flex SDK Developer
Adobe Systems Inc. http://www.adobe.com/
Blog: http://blogs. http://blogs.adobe.com/aharui adobe.com/aharui
From: flexcoders
--
*From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
Behalf Of *Alex Harui
*Sent:* Thursday, December 17, 2009 2:28 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [SPAM] RE: [flexcoders] Re: Combobox in Datagrid appears empty
Is there [Bindable
mailto:flexcoders@yahoogroups.com ups.com
Subject: [SPAM] RE: [flexcoders] Re: Combobox in Datagrid appears empty
Is there [Bindable] before var genreList:ArrayCollection?
Alex Harui
Flex SDK Developer
Adobe Systems Inc. http://www.adobe.com/
Blog: http://blogs. http://blogs.adobe.com/aharui
[mailto:flexcod...@yahoogroups.com] On
Behalf Of Tino Dai
Sent: Saturday, December 19, 2009 11:55 AM
To: flexcoders
Subject: [SPAM] Re: [SPAM] RE: [flexcoders] Re: Combobox in Datagrid appears
empty
Tracy,
For the novice, how would you go about creating a full renderer?
TIA,
Tino
On Sat
Yes - the model is bindable - here's the declaration:
[Bindable]
private var model:ModelLocator = ModelLocator.instance;
and here's the declaration for genreList in the model:
public var genreList:ArrayCollection = new ArrayCollection();
--- In flexcoders@yahoogroups.com,
Yes, genreList is declared as an ArrayCollection in the model, and the model is
declared as Bindable in the parent document for the datagrid.
--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:
Are you sure genreList is an array or ArrayCollection? Is the model bindable?
Alex
3:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Combobox in Datagrid appears empty
Yes, genreList is declared as an ArrayCollection in the model, and the model is
declared as Bindable in the parent document for the datagrid.
--- In flexcoders@yahoogroups.commailto:flexcoders
Instead of itemEditor use itemRenderer and set rendererIsEditor=true on the
DataGridColumn.
-TH
--- In flexcoders@yahoogroups.com, kumarmenon kumarme...@... wrote:
Hi
Is there anyway i can show a DataGrid cell with Combobox with arrow shown all
the time..Currently the way i have it
_
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Richard Rodseth
Sent: Wednesday, August 19, 2009 12:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: ComboBox not updating
Thanks. I should add that my combobox is in use
Thanks. I should add that my combobox is in use in an item renderer. A
colleague had a similar problem which went away when he switched to a
repeater.
It's not clear which if any of your modifications will help my use case, but
I'll try some of them.
Is there a bug we can vote on besides the one
My solution (which is not a general one) appears to be avoiding using a
binding function with selectedIndex. Rather than:
mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml;
dataProvider={this.availableOperators}
selectedIndex={findSelectedIndex(this.selectedOperator,
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: ComboBox not updating
Thanks. I should add that my combobox is in use in an item renderer. A
colleague had a similar problem which went away when he switched to a
repeater.
It's not clear which if any of your modifications will help my
This is an old story with ComboBox selectedIndex. It does not count the fact
that binding on SelectedIndex could come well before dataProvider property
assignment, so it simply resets itself every time it has dataProvider property
being updated.
I have rewritten the ComboBox class to make it
@huhgawz Thanks,i'll try it out.Are there other possibilties then flexwheel?
On 8/12/09, huhgawz huhg...@yahoo.com wrote:
--- In flexcoders@yahoogroups.com, yonghan79 yongha...@... wrote:
Hi all,i wonder does anyone ever before create combobox like the one
here bombaysapphire.com born detail
By the way,how to use it?I look on the web,using minVal and maxVal.In
the newest version,there are no minVal and maxVal option...Thanks..
On 8/12/09, Yesaya handoyo yongha...@gmail.com wrote:
@huhgawz Thanks,i'll try it out.Are there other possibilties then
flexwheel?
On 8/12/09, huhgawz
I'd say its custom.
Really nice though.
--- In flexcoders@yahoogroups.com, yonghan79 yongha...@... wrote:
Hi all,i wonder does anyone ever before create combobox like the one
here bombaysapphire.com born detail combobox
http://www.bombaysapphire.com .What did the creator used?Thanks a
12, 2009 12:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Combobox like on http://www.bombaysapphire.com
I'd say its custom.
Really nice though.
--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
yonghan79 yongha...@... wrote:
Hi all,i wonder does
--- In flexcoders@yahoogroups.com, yonghan79 yongha...@... wrote:
Hi all,i wonder does anyone ever before create combobox like the one
here bombaysapphire.com born detail combobox
http://www.bombaysapphire.com .What did the creator used?Thanks a
lot..
Probably this helps you:
If you cast your service call result to a [Bindable] collection, and
bind the collection to the ComboBox's dataProvider, the ComboBox should
display populated. With binding you don't have to worry about timing.
When the ComboBox is instantiated it will pull the data; if it exists.
If not, the
So my fix is this:
MyComboRenderer
mx:HBox rollOver=onRollOver(); rollOut=onRollOut();
mx:Script
...
private function onRollOver():void {
lblGroup.setStyle(color, getStyle(textRollOverColor));
}
private function onRollOut():void {
No, using that technique, you copy the required files to your classpath and
modify them there. Quote: This will force flex to use mx.controls.ComboBox in
your classpath instead of the Framework. If the Framework is updated Flex will
still use the modified ComboBox in your classpath.
--- In
I see, thanks.
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:
No, using that technique, you copy the required files to your classpath and
modify them there. Quote: This will force flex to use mx.controls.ComboBox
in your classpath instead of the Framework. If the
Maybe:
http://www.typeoneerror.com/forcing-combobox-component-open-direction-in-flex/
--- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2...@...
wrote:
Is it possible to force a direction a combobox opens up to?
Thanks
But if I change framework source code I will have to restore the change every
time I upgrade the framework, right?
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:
Maybe:
http://www.typeoneerror.com/forcing-combobox-component-open-direction-in-flex/
--- In
Are you talking about an example like this?
You may be better off creating a reusable/testable component in separate AS or
MXML file.
mx:Component
mx:CheckBox creationComplete=init()
mx:Script
![CDATA[
no, I 'm saying my comboBox displays whats in its data part of its array
collection, not its label, when it receives a new batch of data. Your checkbox
appears to do the same thing.
--- In flexcoders@yahoogroups.com, Anthony DeBonis anth...@... wrote:
Are you talking about an example like
: [flexcoders] Re: comboBox in datagrid
no, I 'm saying my comboBox displays whats in its data part of its array
collection, not its label, when it receives a new batch of data. Your
checkbox appears to do the same thing.
--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Anthony
@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Libby
Sent: Tuesday, March 10, 2009 4:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: comboBox in datagrid
no, I 'm saying my comboBox displays whats in its data part of its array
collection, not its label, when
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: comboBox in datagrid
I wish...no, I'm using labelField in one and a labelFunction in another one,
but these are not invoked until you actually click on the dropdown. Thus,
when data is first retrieved into the dropdown, the darned thing
: Tuesday, March 10, 2009 6:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: comboBox in datagrid
I wish...no, I'm using labelField in one and a labelFunction in another one,
but these are not invoked until you actually click on the dropdown. Thus, when
data is first retrieved
Harui
Sent: Wednesday, March 11, 2009 12:28 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: comboBox in datagrid
I think we need to see some code, like how the renderer is set up. A
combobox in a datagrid is a renderer so its data setter will fire setting
the selectedItem
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:
You have a lot of stuff happening in there. Did you debug it to see
why
it was not working? Particularly the computeSelectedDateRangeIndex()
function? Was it being called when you expected?
I agree with Tracy. I would
I don't know why you say there's a lot of stuff happening. It's just using
binding (in the form of a binding function) to set an initial selection.
Seems completely legitimate to me. The fact that it's a function rather than
a direct reference is because of the well-known ComboBox limitations with
--- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote:
Is it possible to skin or change the size or shape of the arrow on the
combobox control? Also can you remove or change the vertical line that
separates the arrow button from selected item/label?
arrow-button-width style can
arrow-button-width or arrowButtonWidth doesn't work. It only changes
the width of button the arrow icon, thus the button gets wider but
icon stays the same size.
TIA
--- In flexcoders@yahoogroups.com, roopal_oswal roopal_os...@...
wrote:
--- In flexcoders@yahoogroups.com, flexaustin
Thank you so much. It worked :). You saved my life, thank you.
On Thu, Dec 11, 2008 at 3:32 PM, valdhor valdhorli...@embarqmail.comwrote:
Try combobox.selectedit...@data
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
samsonkiran samsonkir...@... wrote:
Hi
I have
Something's not done correctly. Post some code.
-TH
--- In flexcoders@yahoogroups.com, darylgmyers [EMAIL PROTECTED]
wrote:
I have form window with about 20 combobox fields. Each one is bound
to
a unique arraycollection which is bindable. When the window is first
displayed there are 3 of
Try combobox.selectedit...@data
--- In flexcoders@yahoogroups.com, samsonkiran samsonkir...@... wrote:
Hi
I have an Flex file (.mxml) in which i am making the HTTPService
call to one
JSP. This JSP returns me an XML data. I need to populate the
comboBox in the
FLEX with the data coming
My understanding of this function is that it is to cause an update in
the rendering of the control attached to the data, which implies that
the dataProvider has the correct data - the control is just not
showing it.
I have the reverse problem. In my case, the renderers (the combo
boxes) are
that *reference* to update any property on the item.
Tracy
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of biosmonkey
Sent: Monday, November 24, 2008 8:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, November 25, 2008 3:45 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: ComboBox as itemRenderer/editor in
Datagrid is not updating dataProvider
--- In flexcoders@yahoogroups.com, frosifer [EMAIL PROTECTED] wrote:
Does anyone have a good way of creating a ComboBox where the first
item is an Add New... option that is NOT part of the underlying data
collection (i.e., the data provider). I do not want to add an item at
the beginning of
Randy
I am definitely interested in a search-as-you-type BindableComboBox.
Please share.
I also have a search-as-you-type BindableComboBox that's a
combination of this component with an auto-complete component I found
on the web (not Adobe's) if you're interested.
Thanks Tracy and Mark.
I had not seen the AutoComplete component(s) and my Google searches
weren't working because I had no idea what it was called.
--- In flexcoders@yahoogroups.com, Mark Carter [EMAIL PROTECTED] wrote:
Have you tried google for an autocomplete component?
This should be
Of valdhor
Sent: Thursday, October 09, 2008 5:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox edit field selection when populated
Forgot to ask: Also, how do I get the combobox to popup its list when
the combobox populates with the returned items.
--- In flexcoders
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
Behalf Of valdhor
Sent: Wednesday, October 08, 2008 12:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox in Component won't open to Saved
Value
Tracy
I must be missing something here.
I have
For something that won't work, it works extemely well.
--- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote:
Nope, this won't work.
Next call creates new instances which don't correspond to the
instances from the first call.
You have to loop through the dataProvider,
, 2008 12:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox in Component won't open to Saved
Value
Tracy
I must be missing something here.
I have a combobox with a dataprovider of an arraycollection that is
returned from a MySQL database. This is populated
://www.archaeolibrary.com/Gezer/srcview/
Yaba Daba Do
--- On Thu, 10/9/08, shaun [EMAIL PROTECTED] wrote:
From: shaun [EMAIL PROTECTED]
Subject: Re: [flexcoders] Re: ComboBox in Component won't open to Saved Value
To: flexcoders@yahoogroups.com
Date: Thursday, October 9, 2008, 12:14 AM
Dan
Of valdhor
Sent: Wednesday, October 08, 2008 12:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox in Component won't open to Saved
Value
Tracy
I must be missing something here.
I have a combobox with a dataprovider of an arraycollection
Forgot to ask: Also, how do I get the combobox to popup its list when
the combobox populates with the returned items.
--- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote:
I have a combobox that is unpopulated on open but is editable. As the
user types, I check the length of the
Tracy
I must be missing something here.
I have a combobox with a dataprovider of an arraycollection that is
returned from a MySQL database. This is populated on creationcomplete.
Once this arrayCollection is populated I make another call to get
specific data. Part of this data is a field that
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox in Component won't open to Saved
Value
Tracy
I must be missing something here.
I have a combobox with a dataprovider of an arraycollection that is
returned from a MySQL database. This is populated on creationcomplete.
Once
to be? Anyway here is the code,
thank you for your time. A simple event to say NEW DISPLAY DO IT AGAIN just
seems so damn basic.
--- On Wed, 10/8/08, Tracy Spratt [EMAIL PROTECTED] wrote:
From: Tracy Spratt [EMAIL PROTECTED]
Subject: RE: [flexcoders] Re: ComboBox in Component won't open to Saved
View source at
http://www.archaeolibrary.com/Gezer/srcview/
very nice feature by the way.
Dan
--- On Wed, 10/8/08, Dan Pride [EMAIL PROTECTED] wrote:
From: Dan Pride [EMAIL PROTECTED]
Subject: RE: [flexcoders] Re: ComboBox in Component won't open to Saved Value
To: flexcoders@yahoogroups.com
Nope, this won't work.
Next call creates new instances which don't correspond to the
instances from the first call.
You have to loop through the dataProvider, find the corresponding item
(by label, id, whatever) and say
Combo.selectedItem = ArrayCollection(Combo.dataProvider).getItemAt(i)
this
: RE: [flexcoders] Re: ComboBox in Component won't open to Saved
Value
To: flexcoders@yahoogroups.com
Date: Wednesday, October 8, 2008, 9:22 PM
No, that should not work unless SDActionItem.platform is a
reference to
an item in the ComboBox dataProvider.
Tracy
@yahoogroups.com
Subject: Re: [flexcoders] Re: ComboBox in Component won't open to Saved
Value
Dan, what you're trying to do is a simple thing, but I think you're
complicating it.
Assuming you're using numbers or strings in your combobox and data, simply
bind selectedItem={ currentRecord.myValue
Dan Pride wrote:
My problem is there seems to be no way to kick the event to change
the value. Here is the code, all of it. It can be seen in action at
[snip]
Change:
public var currentPerson:Object = new Object();
To:
private var _currentPerson:Object = new Object();
[Bindable] public
try
var dg:DataGrid = DataGrid(listData.owner);
data[colName] = selectedItem;
IList(dg.dataProvider).setItemAt(data, dg.selectedIndex);
--- In flexcoders@yahoogroups.com, markgoldin_2000
[EMAIL PROTECTED] wrote:
Here is latest code. Still does not work:
public function
Here is latest code. Still does not work:
public function handleDataChanged(event:ListEvent):void
{
var colName:String = DataGrid
(listData.owner).columns[listData.columnIndex].dataField;
data[colName] = selectedItem;
September 2008 11:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Combobox does not hold selected item
Here is latest code. Still does not work:
public function handleDataChanged(event:ListEvent):void
{
var colName:String = DataGrid
(listData.owner).columns[listData.columnIndex
Not sure what you mean.
Here is my combobox's dataChange handle:
public function handleDataChanged
(event:ListEvent):void
{
var colName:String = DataGrid
(listData.owner).columns[listData.columnIndex].dataField;
But I am assigning the custom renderer in code at run time.
--- In flexcoders@yahoogroups.com, Joan Lafferty [EMAIL PROTECTED] wrote:
If you are using an inline itemRenderer, you can do something like
this:
mx:List dataProvider={myData}
mx:itemRenderer
that is a ComboBox as the itemRenderer.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of markgoldin_2000
Sent: Sunday, September 14, 2008 4:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Combobox as Custom Renderer
But I am assigning the custom renderer
: Sunday, September 14, 2008 4:16 PM
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: Combobox as Custom Renderer
But I am assigning the custom renderer in code at run time.
--- In
flexcoders@yahoogroups.com mailto:flexcoders%40yahoogr
How about cui ?
Pronounced: Cooey.
cheers
James
On Mon, Sep 15, 2008 at 4:15 AM, Derek Peschel [EMAIL PROTECTED] wrote:
On Sun, Sep 14, 2008 at 01:14:21PM -0400, Ian Ward wrote:
I want your opinion, which would you rather use?
If those are the only two options, I prefer conui. It's easier
Ok found it. Setting focusAlpha = 0 does the trick.
But now I have another issue. Is it possible to change the font color
in the combobox when the dropdown is activated? I want the font to be
white while closed and when it opens change the dropdown font to black
and the textfield (top item) to
setStyle(color, ...) on both dropdown and Combobox?
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of
flexaustin
Sent: Wednesday, September 10, 2008 11:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Combobox focus glowing
Ok found it. Setting focusAlpha
I set caret to false. Now the outline doesn't show, but it should
jump to the next enabled item. The selection disappears, but I know
the selection is on the disabled item. In the finishKeySelection
function, it sets the selectedIndex to the next enabled item, but it
seems the combobox is
Hmm. The combobox is handling keystrokes and forwarding to the List. It might
be messing things up.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwwpl
Sent: Thursday, August 28, 2008 10:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox Disable
:
Hmm. The combobox is handling keystrokes and forwarding to the
List. It might be messing things up.
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of wwwpl
Sent: Thursday, August 28, 2008 10:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox
10:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox Disable Drop Down Items
I set caret to false. Now the outline doesn't show, but it should
jump to the next enabled item. The selection disappears, but I
know
the selection is on the disabled item
Subject: [flexcoders] Re: ComboBox Disable Drop Down Items
There is a weird thing happening here. Maybe someone could explain
it. I changed back to having a disabledFunction variable instead of
having the function in this class. I am trying to set the
disabledFunction like this:
var
: [flexcoders] Re: combobox fills in with blank element
Here is the relevant code from the component with the combobox:
[Bindable]
private var signalList:ArrayCollection = new ArrayCollection();
public function setSignals(sig:ArrayCollection):void {
signalList = sig;
}
mx:ComboBox
I don't think that is going to work except the first time the method is called.
I need to be
able add more items to the array later on and this would simply overwrite
signalList each
time and I'd lose the items added previously.
--- In flexcoders@yahoogroups.com, Mauricio Rogério Obenaus
Here is the relevant code from the component with the combobox:
[Bindable]
private var signalList:ArrayCollection = new
ArrayCollection();
public function setSignals(sig:ArrayCollection):void {
Does signalList have an extra element in it?
Tracy
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of netdeep
Sent: Friday, July 11, 2008 11:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: combobox fills in with blank
I had a problem like that, try this:
var newList:ArrayCollection(signalList);
for (var i:int=0; iarr.length; i++) {
if (!newList.contains(arr[i].name)) {
newList.addItem(arr[i].name);
}
signalList = newList;
I din´t compile this, no builder available here.
Mauricio
On Fri, Jul 11, 2008 at
Try owner.owner
Inside itemRenderer owner would be the List, the Lists' owner would
be the CB I think
--- In flexcoders@yahoogroups.com, Battershall, Jeff
[EMAIL PROTECTED] wrote:
Alex,
I thought that might be the case, but when I use
owner.dispatchEvent(myCustomEventInstance,true)
@yahoogroups.com
Subject: [flexcoders] Re: ComboBox ItemRenderer Custom Events only go to
SystemManager - WHY?
Try owner.owner
Inside itemRenderer owner would be the List, the Lists' owner would
be the CB I think
--- In flexcoders@yahoogroups.com, Battershall, Jeff
[EMAIL PROTECTED] wrote
Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of reflexactions
Sent: Wednesday, July 09, 2008 2:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox ItemRenderer Custom Events only
go to
SystemManager - WHY?
Try owner.owner
@yahoogroups.com
Subject: [flexcoders] Re: ComboBox ItemRenderer Custom Events only go to
SystemManager - WHY?
Cast owner to something like ListBase to get round the compiler error.
--- In flexcoders@yahoogroups.com, Battershall, Jeff
[EMAIL PROTECTED] wrote:
OK, I tried this but I get a compiler
.
Jeff
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of reflexactions
Sent: Wednesday, July 09, 2008 2:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox ItemRenderer Custom Events only go to
SystemManager - WHY?
Try
] On
Behalf Of Simon Bailey
Sent: Wednesday, July 09, 2008 2:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: ComboBox ItemRenderer Custom Events only
go to SystemManager - WHY?
Just as a precaution here, this owner parent stuff shouldn't be
necessary, you should
--- In flexcoders@yahoogroups.com, Battershall, Jeff
[EMAIL PROTECTED] wrote:
OK, I tried this but I get a compiler error - owner (which is a
DisplayObjectContainer) doesn't have a property owner.
I've used code like this in the past
var myParent:*=owner
while
it's got a lot of mess and debug junk, but:
public function addedToStageHandler():void
{
Application.application.log.text += Got Add
event\n;
Application.application.log.text += MONTH = +
monthCB.selectedIndex + \n;
1 - 100 of 213 matches
Mail list logo