Actionscript 3 :: Flex 4 ComboBox Stays Open When Filtered

Jul 29, 2011

I have a Flex 4 app with an external ItemRenderer inside of a DataGroup for a repeating form. The DataGroup dataprovider is an ArrayCollection (coll_sites). In the documentParent I have a trio of comboBoxes (Status, Year, Area) that trigger a filter function that operates directly on coll_sites.The itemRenderer has a series of textInputs and comboBoxes. Three of these comboBoxes are tied to fields in coll_sites (again, Status, Year and Area) that are filtered by the aforementioned parentDocument comboBoxes.The problem I am having is that in the itemRenderer when the field is one of the filtered ones, the itemRenderer ComboBox will not close. If it's not filtered, there is no problem. I have confirmed that the problem ComboBox updates the ArrayCollection appropriately, it just won't close unless another Item in the dropdown is selected.[code]In the ItemRenderer code above, the ComboBox for STATUS works exactly as it should but YEAR stays open after changing. In my full code, I have three such filtered fields and all three behave exactly the same. The other six fields which are not filtered, close appropriately.

View 1 Replies


Similar Posts:


Flex :: Combobox Needs To Be Selected Twice To Open Drop Down List?

Mar 12, 2011

When a combobox is elected in the flex app, there is a quick flicker, then the combobox needs to be selected again in order to get the dropdown to open. After that, the dropdown works as expected, but only while selecting the control subsequent times while on the form. Reloading the form requires the double selection again.

View 1 Replies

Flex :: Force Combobox Dropdowns To Stay Open?

Jan 19, 2012

How do you force Combobox dropdowns to stay open even when other Alert boxes appear. Looking at what to subclass from mx.Combobox, there doesn't seem to be much that i can do to short of implementing an entire combobox from scratch.

View 1 Replies

Flex :: Length Of Filtered ArrayCollection?

Nov 19, 2010

I need to display the number of items in a List component that has a filtered ArrayCollection as its data provider. I don't see a way to get the filtered collection's length.

View 1 Replies

Flex :: ArrayCollection - Filtered Out Images Vanish Suddenly

Dec 16, 2009

I am working in Flex. I have an arraycollection which is used to fill a tilelist with images. I am using filter method of arraycollection to filter out certain images from tilelist based on a selected value from combobox. The issue is that when the images are filtered out they just vanish suddenly. But I want to give some effect to them when they are filtered out, say slow fade effect or zoom effect. I tried removedEffect, hideEffect etc. but in vain.

View 1 Replies

Flex :: Single Model - Multiple Filtered Views

May 17, 2010

I have data model (dataProvider as ArrayCollection) i want to display in few views , each view should show filtered data. As you probably know, filterFunction is property of ArrayCollection,so I can't use this solution (unless creating new instance of ArrayCollection for each view on top original and impementing filterFunction).

View 2 Replies

Flex :: Merge Data Into Filtered ArrayCollection (maybe By Using IViewCursor Or LocalIndex)?

Jan 5, 2012

how do you merge data (coming repeatedly from server) into a filtered ArrayCollection?

The TestCase.mxml (just place it into a Flash Builder 4.6 project):

<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark">

[code]....

The problem lies in the fact, that when the ArrayCollection _data is filtered (because the Checkbox "Even" is set), then the 2nd loop in the test case (for adding new items) adds items (the "35") again and again - because it's filtered and thus not visible.

View 1 Replies

Actionscript 3 :: Combobox Is It Open Or Not?

Jun 14, 2011

I have a problem to determinate if my combobox is open or not. I've seen the same topic but that solution : if(combobox.dropdown != null && combobx.dropdown.visible) doesn't work for me. It is always true. I can't find any component who is responsible for this such a simple operation.

View 1 Replies

Flex :: Setting A Custom ItemRenderer In A ComboBox On Specific List Items After Combobox Creation?

Nov 8, 2010

I'm trying to set a specific list item in a mx combobox to have a custom item renderer, the problem is that I cannot do this via mxml, it needs to be done via actionscript at a later stage, eg: combobox gets created, combobox gets populated, user does other tasks, combobox needs to set one or more items in the combobox to have icons (via item renderer)..

I can do this via the onChange event, but it only applies the icon when the combobox is opened and there is a slight delay so you can see the icon being added.

View 1 Replies

Validate Combobox In Flex Before Save Has To Select Some Item In A Combobox?

Mar 16, 2011

How can I validate there's a selected item in a ComboBox before saving? If there's no selected item, how can I set focus on the ComboBox?

View 2 Replies

ActionScript 3.0 :: ComboBox In Child SWF Fails To Open

Apr 28, 2009

I have an swf with a comboBox with three simple values. When I bring up the swf by itself it works fine. When I try to bring up the swf by loading it from another swf, I get a TypeError: Error 1009 "Cannot access a property or method of a null object reference, when I try to open its dropdown. If I add a ComboBox to the parent SWF's library the error goes away and everything works fine. Although I have a fix, I have several child swf's that I don't always know what components are in them.

View 2 Replies

ActionScript 2.0 :: Force V2 ComboBox To Open Upwards?

Oct 15, 2005

Is there any code to force a V2 combobox to open updwards, rather than the default downwards?

View 1 Replies

Flex :: Events - MouseEvent Doesn't Fire When Mouse Stays Over Element

Apr 23, 2010

i'm trying to make a scrollable box, when a mouse enters and STAYS on "wrapper"'s area, "pubsBox" moves 10 pixels to the left.

<mx:Canvas id="wrapper" height="80" width="750">
<mx:HBox id="pubsBox" horizontalGap="10" height="80" width="100%" />
</mx:Canvas>

My problem is that I'm not sure how to make the MouseEvent.MOUSE_OVER work, to recognize that the mouse is still ON the area and so pubsBox should continue to move 10 pixels to the left every second. I understand that i have to use a Timer, but what I'm concerned about is the fact that I can't get Flex to recognize that the mouse is still OVER "wrapper" and continue firing the event.

View 1 Replies

Actionscript 3 :: Remove Filtered Out Elements From ArrayCollection?

Sep 4, 2011

I have a big ArrayCollection variable. I want to filter it serveral times and each time assign the filtered result to a different ArrayCollection variable.

So if it has let's say people, fruits and cars. (for illustration purposes) I want to first filter it to only show people, assign the result to a people ArrayCollection, then filter it to show fruits and assign it to a fruits ArrayCollection and so on.

How can I do that? Not the filtering, but the assignment after filtering. Or is it faster to instead run a for-loop through the big ArrayCollection and just add each item into the corresponding smaller ArrayCollection?

View 1 Replies

Actionscript 3 :: Return One Item From Filtered Array

Mar 30, 2012

I want to return just 1 item in the filtered array.[code]I want "arr" to contains just one item.

View 3 Replies

ActionScript 3.0 :: Pass A Collection A Variables And Return A Result Based On The Filtered Results Of A Mysql Table

Nov 28, 2010

I'm trying to develop a simple as3 flash program that passes a collection a variables and returns a result based on the filtered results of a mysql table. Here is my as3 file:

[Code]...

No value is returned. If I replace with '$test4' and '$test5' with numbers such as 1 and 17, a value is returned. Where am I making a mistake?

View 1 Replies

Actionscript :: Flex - Dynamically Populate The Options In A Combobox Inside Of A Grid Based On Another Row In Flex?

Sep 8, 2009

I'm trying to setup a DataGrid that contains a column of combo boxes. The values of the combo boxes are defined by data specific to that row. I cannot get this to work though, I'm asking for a solution to this, either fixing what I have below or a recommendation on a different way.One of the columns of my DataGrid has an object derived from a ComboBox for an ItemEditor. The itemEditor is set like this:

<mx:DataGridColumn editorDataField="selectedItem" dataField="type" editable="true" >
<mx:itemEditor>
<mx:Component>

[code].....

View 1 Replies

Flex :: Include ComboBox In Flex Datagrid Header?

Dec 22, 2009

I want the comboBox to be placed in one of the columns of the datagrid header.The datagrid should be filtered according to the value selected in the comboBox.e.

View 1 Replies

Flex :: Detect TextInput Changes On An Editable ComboBox In Flex?

Jan 26, 2010

If my ComboBox is editable how can I tell if a change event comes from a change to the TextInput or a change in the selectedIndex of the drop down?

Is there a way to check for this in the event object?

View 1 Replies

AS2 :: Create A Custom ComboBox - Test Movie - Combobox Has Become An Unclickable White Rectangle With No Label?

Aug 7, 2009

I'm using Flash CS3 and want to create a custom ComboBox. I've followed the steps outlined in "Editing component skins in a new document" (http:/[url]...), but every time I get to the step where I drag the ComboBox Assets folder from the HaloTheme.fla library into my library, if I test movie at that point my combobox has become an unclickable white rectangle with no label, button or anything.

View 2 Replies

IDE :: Warning - The Linkage Identifier 'ComboBox' Was Already Assigned To The Symbol 'ComboBox'

Dec 8, 2008

**Warning** The linkage identifier 'ComboBox' was already assigned to the symbol 'ComboBox', and cannot be assigned to the symbol 'GUI MC/Combo Boxes/abc', since linkage identifiers must be unique.**Warning** The linkage identifier 'ComboBox' was already assigned to the symbol 'ComboBox', and cannot be assigned to the symbol 'GUI MC/Combo Boxes/def', since linkage identifiers must be unique.

Both of my ComboBoxes has the same identifier.I could not change the identifier through the properties tab because it is greyed out.

View 5 Replies

Professional :: "The DisplayObject's Filtered Dimensions Are Too Large To Be Drawn"

Feb 17, 2010

I'm editing a site which runs flash.  I can click through the entire site without issues in Internet Explorer 5 and 6.  In newer versions of IE, Firefox, Chrome and Opera, I have issues playing any video.  The site is designed in a way that you click from page to page (topic to topic) and "click to enlarge" objects.  PDF files and jpg's work fine.  When you click on two FLV videos the enlarged window pops up but the player does not open and the video does not play.  When I open this file in Flash Pro try opening these video I get a message stating "The DisplayObject's filtered dimensions are too large to be drawn."  I know the site works, but I believe the flash file is calling something not compatible with current browsers.

View 1 Replies

Flex :: Get The Value Of A ComboBox That Is In A DataGrid?

Oct 6, 2009

I have a data grid that has ComboBoxes in two of its columns.

What I need to do is get the values of those bombo boxes when a user highlights the row of the grid NOT when the user uses the comboBox. I understand how to pull the values out once the change handler is invoked on the comboBox, but I'm not seeing a way to get at the comboBoxes that belong to the currently highlighted gridRow.

I'm sure it's really straight forward, but I'm just not able to find any reference on how it's done.

View 2 Replies

Flex :: ComboBox Has Lines Around It

Feb 16, 2010

I'm stumbling my way through designing my first Flex app, using Flex Builder 4 Beta 2. I'm trying to use a ComboBox, but they always seem to have lines around it and I can't figure out how to get rid of them. The ComboBox looks like this: [URL] All I did was drag the ComboBox from the Controls section in the Design section of the UI onto the screen. I haven't changed any settings, no special css, just used the default ComboBox and this is what I get.

View 1 Replies

Flex :: Get The Value Of A ComboBox Within A DataGrid?

May 12, 2010

I have a DataGrid with a ComboBox as an ItemRenderer for one of my columns. When the user selects a row, I want to get the ComboBox's selected value for the selected row.

EDIT: I should have mentioned that the dataField2_Array property in myData is actually an Array is the dataProvider for the ComboBox. Each object in myData could have completely different values in that Array so the ComboBox in each row of the DataGrid could have completely different options to pick from.Some sample code:

<mx:DataGrid id="myGrid"
dataProvider="{myData}">
<mx:columns>[code].....

View 2 Replies

Custom Combobox In Flex?

Aug 31, 2010

I need a custom Combobox in flex(as an ActionScript file), where I need to display in dropdown all the data nodes in the dataprovider as comma seperated values and when selecting only display one single node/value in textInput. How can we implemented this.

View 2 Replies

Flex :: Set DataProvider To A ComboBox?

Feb 14, 2011

When setting an arrayCollection as a dataProvider to a comboBox programmatically,if the arrayCollection has just one element,i need to do a small validation[code]..

View 1 Replies

Flex :: Sorting - Get Value In ComboBox

Sep 26, 2011

I have a one comboBox that I fill as:
for (var key:String in values) {
conns.addItem(key);
}

After that I sorted my ComboBox as:
private function sortConnection():void {
var dataSortField:SortField = new SortField();
dataSortField.name = "data";
dataSortField.numeric = true;
var numericDataSort:Sort = new Sort();
numericDataSort.fields = [dataSortField];
conns.sort = numericDataSort;
conns.refresh();
}

And on finish I want to select item on my specific value in ComboBox. How can I do that? I try:
for (var ii:Number=0; ii<combo.rowCount; ii++) {
var item:String = combo.getChildAt(ii);
if (item == name) {
index = ii;
}}
But does not work. I do not know where I made mistake, and how I can select on specific item in my combobox.

View 2 Replies

Flex :: ComboBox - Refresh Dataprovider

Apr 5, 2012

I am using a combobox to list the contents of a folder. With a button click I use that combobox.selectedItem to delete that folder. After I delete the data is still in the combobox. How do I go about refreshing that combobox?

View 1 Replies

Flex :: Sort Contents Of ComboBox?

Sep 19, 2009

I need to be able to sort the items of a combobox so they will be in alphabetical order. how would I do this?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved