Flex :: Increasing The Width Of DropdownList?
Apr 15, 2011
I want to adjust the width of DropDownList control in flex 4. I could do it by editing the skinclass and setting the PopupAnchor's Property "popUpWidthMatchesAnchorWidth" to false, but in my application I have to do it using actionscript.
View 3 Replies
Similar Posts:
Apr 19, 2011
I want a dropdownlist that is wide enough to accommodate the larger item in the dropdown in display area of the main control.(.i.e. dropdownlist with the functionality of MX Combobox)
View 6 Replies
Mar 23, 2009
I have a basic framework for my code, but I am not sure how to just get the icons I have to grow and shrink. Right now I can only get it to snap to +10 width and height.
var grow:Number = 10;
var shrink:Number = 10;
resiSplash_mc.addEventListener(MouseEvent.CLICK, resiClick)
resiSplash_mc.addEventListener(MouseEvent.ROLL_OVE R, resiGrow)
resiSplash_mc.addEventListener(MouseEvent.ROLL_OUT , resiShrink)
function resiClick(event:MouseEvent):void {
[Code] .....
View 1 Replies
Jan 4, 2012
We are working on an android application that works on web also. On android the scrollpane components are showing very small and difficult to catch with finger. We tried to increase the width of scrollpane component but this don't work.
View 1 Replies
Jun 24, 2010
on Roll_over I am increasing uiLoader width and Height for Zoomed versionso when I roll Over first loader , it appears behind 2nd loader ,similarly when I rollover 2nd loader , it appears behind 3rd loader
[Code]...
View 5 Replies
Sep 18, 2011
Let's say that I have a line being dynamically generated by an enter frame function (see script below). As long as the movie is playing, the line's width is increasing.
1) At what point (if ever) does its always-incresing width have a negative effect on the processor?
2) Is there any way to test the processor in such a situation to make sure that things aren't undermining performance?[code]...
View 1 Replies
Oct 21, 2010
In a dropdown how to get icons along with text and once we select any of the index from the dropdown i want that icon also be selected and to be displayed on that dropdown header
View 1 Replies
Mar 5, 2011
I'm having difficulty figuring out how to add a dropdownlist control to only a single row of a data grid. For example, if I have two rows of data in the grid, I want the top to be the normal text from the data provider, and the second row to be a dropdownlist (bound to an array collection).
View 1 Replies
Mar 8, 2011
I'm sure this is a easy one but I've been searching for a while how to select a DropDownList element with actionscript. In this scenario, I'd like to be able to specify the selectedItem based either on ddlLabel or ddlData
<?xml version="1.0" encoding="utf-8"?>
<fx:Script>
<![CDATA[
[code].....
View 1 Replies
Sep 10, 2011
I am making some simple project and I have problem with selectedItem. I have sth like this
<s:State name="Form" enterState="makesService.send()"/>
so when I enter this state I take makes from database and populate them to dropdownlist.
but I have also button and on click event I'm changing state to this Form and I want to select specific make from the dropdownlist but I can't. I'm not sure whether I'm doing sth wrong or the problem is that I'm selecting item just before the dropdownlist became populated.
e.x. List of make consist of Audi and BMW and when I click button I want to open this state Form in which this dropdownlist exist with selected value e.x. BMW.
View 1 Replies
Mar 2, 2011
I have created a custom ComboCheck which extends the spark DropDownList that is a DropDownList of checkboxes. Inside of my itemRenderer I have the code:
[Bindable]override public function set data (value:Object):void {
if (value!=null) {
_data = value;
[Code].....
This will also not cause the dropdownlist to reset to scrollPosition 0
View 3 Replies
Mar 17, 2011
I have a XML structure like:
<Main>
<Category1>
<Data Name="Data1">
[code].....
View 1 Replies
May 11, 2011
Let's say I have a DropDownList with the 50 states in it. I would like to type in the letters "C + O + L" to jump to Colorado, like Firefox and most application do. Right now, it's jumping from California to Ohio to end with Louisiana.
View 3 Replies
May 29, 2011
I am trying to make a simple change on look of Flex 4.5 Spark DropDownLis trough extending it's item renderer, anyway even a just shiny new item renderer bring me as result a items which labels is blanks. If i remove the renderer everything is fine, but with it - the items is blank white.
[Code]...
View 1 Replies
Feb 8, 2011
I have just implemented a dropdownlist of checkboxes taken from this ComboCheck example but made it extend DropDownList instead of ComboBox to provide better functionality that I required. I am attempting to create a DropDownList where some items are bold and non-checkboxes (or can be checkboxes) and others are not.
I have not been able to find anything online about doing this yet and have been trying to figure it out. I am currently using an ArrayCollection as a dataProvider but I think this could possibly be my issue and I should be trying to setup the labels in flex not AS3.[code]...
View 1 Replies
Feb 18, 2010
Using FB4, I want to change the height of an open spark DropDownList. By default, it shows up to 6 items before scrolling. My dropdownlist contains 7 items, so I want to change the height of the open dropdown list to fit all 7 items without scrolling. As a workaround, I've changed the font size of the items so that they are smaller and all 7 fit, but the smaller font doesn't look good. Is there a way to change this height?
View 5 Replies
Sep 7, 2010
I have a Flex Spark dropdownList in which I need to show the Provider FirstName,LastName:
<s:DropDownList id="providerList"
dataProvider="{model.practiceProviderList.practiceProviders}"
labelField="provider.providerName.firstName"/>
But the output shows only [object Object] & [object Object] as there are 2 providers in the DB and does not show the actual values.
The PracticeProviderList.as:
[Bindable]
[RemoteClass(alias="model.PracticeProviderList")]
public class PracticeProviderList extends PracticeProviderListBase {
[Code]....
The Provider has providerName:PersonName as one of it's fields & PersonName has firstName:String & lastName:String
View 1 Replies
Sep 8, 2010
I'm fetching some data from a PHP application using Zend AMF. However I can't get the data to bind to a simple DropDownList control. The PHP method is:
[Code]...
View 2 Replies
Oct 29, 2010
In this code I'm creating a new window when I click the button. In the new window are TextInput and DropDownList components. When the new window opens, clicking the DropDownList does nothing - you have to click it a second time round to get it to open. However, click into the TextInput field first and then try opening the DropDownList works no problem.
Below is the code, or download the FXP file here.
// DropDownTest.mxml (application)
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[code]....
View 1 Replies
Mar 11, 2011
I'm trying to use the Spark DropDownList as itemEditor in an AdvancedDataGrid. Howerver, I've stumbled onto two issues:Clicking on a item in the DropDownList changes the selected row in the ADG. You can see this behavior by compiling the code from below and executing the following steps.The value changes from "A" to "C" and Row 3 is the selected row in the ADG. It looks like the mouse click in the DropDownList is also handled by the ADG itself which changes the selected row accordingly. I couldn't figure out a way to prevent this. The expected behavior would be that row 1 is still selected after the DropDownList has been closed.Clicking on the scrollbar of the DropDownList closes the DropDownList. (I just found the solution to this problem in the relatated questions while writing this: Scrollbars in dropdownlist inside DataGrid itemEditor not working)
Application
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
[code].....
View 2 Replies
May 12, 2011
I have an AIR application with 2-3 DropDownLists and a bunch of other controls. The DropDownLists are bound to dataproviders (ArrayCollections) in a central Model singleton. On launch, they all work fine.
However, when I click a button to add new objects to an object in another ArrayCollection in the same Model, the DropDownLists get weird. They still register clicks, and all other controls still work as before, but the dropdowns won't open. Clicking/waiting enough usually opens the dropdown, but if I don't make another selection it still won't open after closing. Making a different selection makes that DropDownList work again, but the others might still refuse to open.
If I open the dropdowns using Ctrl + Down arrow, they work all the time, so it's only the click that doesn't trigger the open correctly. I can work around the problem by calling openDropDown() on the dropdown when clicked, but that doesn't feel right.
I'm using the 4.1 SDK, and the dropdowns are s:DropDownLists. I tried using mx:ComboBoxes instead, but got the same behavior. Edit: Weirdly enough, using s:ComboBoxes they work as they should, but I really don't want to use them since they seemingly can't be made non-editable.
View 2 Replies
Jul 18, 2011
I am using FlashBuilder 4.5 for PHP. I have a simple MySQL table with the fields {tID, tName}.I am able to populate a DropDownList in a Flex form as below. The DropDownList shows the name of the people without problem:
<s:Form defaultButton="{button}">
<s:FormItem label="myList: ">
<s:DropDownList id="dropDownList" creationComplete="dropDownList_creationCompleteHandler(event)" >
<s:AsyncListView list="{getPeopleResult.lastResult}"/>
[code]....
The above does not work.
View 2 Replies
Aug 9, 2011
I'd to use my database field value to select a value on my <s:DropDownList. I try to do
<s:DropDownList dataProvider="{DP_PAT_CIVIL}" selectedItem="@{objectUser.usrQualParent}"/>
But no selection appear, nothing appear on prompt.
objectUser.usrQualParent represent a value with is present in the dataprovider DP_PAT_CIVIL. For exemple, dataprovider is:
[Bindable]
private var DP_PAT_CIVIL:ArrayCollection = new ArrayCollection (
[{label:"Monsieur" , data:"0"},[code].....
View 2 Replies
Sep 17, 2011
This is what I've done so far.
<!-- fill -->
<!--- Defines the appearance of drop-down list's background fill. -->
<s:Rect id="background" left="1" right="1" top="1" bottom="1" >
<s:fill>
[Code].....
If you look closely you'll see that I've changed the default value for the bgFill color. However, when I run my application, the background color for the dropdownlist is still the default white.
View 1 Replies
Sep 8, 2010
I make the datagrid editable so that the selection can be passed from renderer to datagrid the scroll bars in the dropDownList fail to work. What can be done, nobody seems to know. If you know please let everyone know.[code]
View 1 Replies
Jan 22, 2011
I'm dynamically creating an IList to use as a dataprovider for a DropDownList in Flex.
The code is creating the IList correctly, and I can access the data inside just fine.
However, when I set the dataprovider for my DropDownList, it only shows blank entries for each item in the list.[code]...
View 1 Replies
Feb 3, 2011
When using a dropdownlist in flex I'd like to know the exact index value when the prompt is initialized in it.
View 1 Replies
Mar 27, 2011
I want to extend DropDownList control to include an option for creating or editing the options. For example; for a list of projects in the dropdown list, there will be another option that says "Create new project..." or "Edit projects..." and this will be the last option in the list. When user selects this option, the selectedIndex or selectedItem will not change and corresponding action will be taken (for example a popup window shows up).This will be a convenient way for the end user. Now I want this to work independent of the context and the class must be reusable. User will only specify the optionText and optionFunction to work this out. The basic structure of the class looks like this:
public class OptiveDropDownList extends DropDownList
{
private var _enableOption:Boolean;
[code].....
View 1 Replies
May 9, 2011
I have a spark dropdownlist and I have applied custom skin on it to display images in it instead of labels.
<s:DropDownList id="id_cbLineType"
skinClass="assets.skins.SkinDropDownImageList"
itemRenderer="spark.skins.spark.DefaultComplexItemRenderer"
[code].....
View 2 Replies
May 20, 2011
So I'm trying to change to appearance of a spark DropDownList when it's in the normal state. I thought I color used the borderColor property but that seems to only change the color of the border when the list is open.
View 1 Replies