Actionscript 3 :: Flew Spark Dropdownlist - Add Separator Between Item?

Jan 20, 2012

I am trying to create a dropdown that can display both past state and possible state for a customer.But I want to make add a separator between past and possible state.Actually to do that I add an item like "-----" on the dataprovider.But the look and feel is not good and this item may be selected.My ideal approach is something like that:

View 2 Replies


Similar Posts:


Actionscript 3 :: Flex 4 Remove Selected Item From Spark DropDownList

Jun 30, 2011

My stakeholder has a request to remove the currently selected item from the DropDownList control(s) in the application. For example a drop down with [item1, item2, item3, item4] if item2 is selected then the only items in the drop down will be [item1, item3, item4]

Using Flash Builder 4 with Flex 4.0 sdk

View 2 Replies

Flex :: Add Separator Between Items In A Spark List Control?

May 21, 2010

I have a s:List where I've defined my own itemRenderer, and would like to insert a horizontal line separating items, similar to the way the mx:LinkBar works. I don't want to have a line at the top or bottom of the list, so I can't just include an upper or lower border in the itemRenderer. I was hoping the itemRenderer could be made aware of its index in the list, but I don't see how.

View 2 Replies

Flex :: No More Than 9 Digits After Separator With Spark.formatters.NumberFormatter?

Jul 13, 2011

I must display very small values (capacitor) in a Flex-AdvancedDataGrid I use spark.formatters.NumberFormatter. If I use 3, 6 or 9 for fractionalDigits, everything is fine.

But if I use 12, because I need 12 digits after decimal separator, then the value is cut after 9 digits!

Is there a way to get more then 9 digits after separator.

Or is there a way to use a formatting like "4.7 E-12" (Must be E-9, E-12, E-15 and so on)

View 2 Replies

Flex :: Spark DropDownList As ItemEditor Within AdvancedDataGrid?

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

Flex :: Apply Image States In Spark Dropdownlist?

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

Flex :: Get A Spark DropDownList SkinClass And TypicalItem To Live Happily Together?

Aug 31, 2010

How does one go about calling a skinClass on a DropDownList component without compromising the typicalItem functionality?

[Code]...

View 1 Replies

Flex4 :: Get Second Item From DropDownList

Jul 4, 2011

Does any one know how it's possible to get in Flex 4 a value of the second item from Drop Down list, assuming I have 3 items listed there?[code]

View 1 Replies

Flex :: Spark DropDownList SelectedItem Didn't Update After DataProvider Changed?

Dec 26, 2010

I have two dataProvider's for one DropDownList. The following code can be compiled and run.

<?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].....

View 1 Replies

Php :: End The ID Of The Selected Item Of A Flex DropDownList To The Server?

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

Flex :: DataGrid Item Editor - DropDownList Fires Focus Out On Scroll

Feb 24, 2011

I have a data grid with a custom item editor that displays a DropDownList component. When I click the scroll bar in the component, it is firing a focus out event on the list, which is causing itemEditEnd to fire. Why the list is not keeping focus, or how to make it keep focus. I'm using Flex 4.

View 2 Replies

Flash :: Add A Tooltip For Each Item In A Spark Combo Box?

Apr 15, 2012

I want to show tool tip on each item in Spark Combo-box.

i use my own class for combox here is full code

package com.zigron.controls.extended.components
{
import com.zigron.controls.extended.skins.LabelTextInputSkin;
import com.zigron.controls.extended.skins.comboBoxRegisterationSkin;

[Code].....

How do i set a property of tool tip and in which function that wherever i use this combo box the tool tip is appear.

View 1 Replies

Flex :: Highlight Item In Spark List?

Jun 25, 2010

I have two spark lists and want to drag items from one list to the other. When im dragging an item and over the other list item, i want the target item to change the background coloer.Basically instead of showing the black line indicating that I will drop between elements, I want to see the target item highlight.

View 1 Replies

Flex :: Spark List Item Renderer

Nov 29, 2010

How do I wordwrap in a spark list w/ an itemrenderer? This posting at[URL] works 100% but when I try to set a separate item renderer, I can't get the word wrapping...instead, I get an ugly horizontal scroll bar. HEre is my mxml:

[Code].....

View 1 Replies

Flex :: Spark ComboBox Displaying Text For New Item?

Sep 16, 2010

I've been playing with s:ComboBox and generally like them a lot. One detail is driving me nuts though - most likely due to my lack of knowledge in the subject - is that if I try to add a new item to my dataprovider in a changeHandler (registered to the change event) the text for the ComboBox textInput disappears - although the item addition works perfectly. Interestingly enough the same operation works fine if it gets called by clicking on a button, i.e. post the change event has been processed, and the text does not disappear.[code]if you take out the change handler you will see that adding a new item and then clicking on the button keeps the new element in the textInput while adding the item to the data provider, which does not happen if you just enter a new item and press enter.

View 1 Replies

Flex :: Get The Item Renderer That Is At The Top Of The Viewport In A Spark List?

Oct 26, 2010

I have a Flex Spark List (well it's a Tree to be precise but it renders as a list) and as I'm scrolling through it I want to provide information about the item that is currently at the top of the list in context to the viewport. So this could be the 100th item in the list depending on how far you've scrolled down.

View 1 Replies

Flex :: How To Add Spark List Item Custom Properties

Jan 3, 2011

I'm trying to make a simple flash application providing interface for taking tests as a high school assignment. One of the requirements is to use an XML file as data source.Now, having a List component bound to the XML file with questions consisting of data such as question body, question type (ie. single choice, multiple choice, open, image etc.) and possible answers (where applicable), I was wondering if I could add some additional data (and what is the best possible way to do so) to each question upon its transfer to the List component.

I am trying to achieve two main goals with this: firstly, to mark the questions to which an answer has already been given, like with such code in ItemRenderer class:
<s:Label color="{data.color}" text="{data.label}"/>
Where data.color would be set whenever the user gives an answer to a question.
Secondly, while at it, I thought of such possibility as a great way to store answers given to particular questions. In this case, the Class of the answer object would have been Object, since there has to be many type of questions (where the answer could also be a Bitmap for example).

View 2 Replies

Flex :: Changing Space Between Spark Form Item?

Feb 26, 2011

Is there a way to change the space between a spark form item and its content (textinput, combobox)? I already set to 0 the "gap" property of the form, but still there is a lot of vertical space left between the form inputs.

View 5 Replies

Flex :: Spark List Selected Item Coordinates?

Jun 17, 2011

I have a list with custom item renderers. What I would like is when one of the list items is selected to position another control OUTSIDE the list to the same vertical position as the selected item.

View 2 Replies

Flex :: Spark List Component Item Order

Oct 17, 2011

I have a regular spark list which is sorted correctly when no item renderer is used. However, when the following item renderer is used, the list shuffles and displays items from previous instances of the list.[code]

View 2 Replies

Flex :: Scroll To Selected Item In Spark List Component?

Oct 21, 2009

I'm setting selected element in s:List component with Actionscript, it works, but List doesn't scroll to selected item -- need to scroll with scrollbar or mouse. Is it possible to auto-scroll to selected item

View 8 Replies

Flex - Spark List Reusing The Wrong Item Renderers?

Feb 9, 2010

I have a List component using multiple item renderers determined by the itemRendererFunction. When I set the data the first time, it works as expected. Then, when I set the data a second time with new data, it doesn't call the itemRendererFunction and tries to reuse the current renderers even though they don't match the data.Once I scroll, the function is called and the correct renderers are used. I tried calling invalidateDisplayList and such prior to setting the data, but that didn't fix the problem.

View 3 Replies

Flex :: Spark List Not Displaying Selection When An Item Is Removed

Aug 3, 2011

I have an issue with Spark Lists whereby I am trying to ensure that an item is always selected and ensure that the GUI displays this to the user.

The application (full code below) creates a List, a Label and a Button. The Label states what is selected in the List. The button removes the selected item. Changing the selection, updates the text in the Label. Important: The List has "requireSelection" set to true to ensure that an item is always selected.

If I select the first item in the List, the selection is correctly reflected in the label. Clicking "Remove" removes the item and the next item is selected. This is all working correctly.[code]...

View 1 Replies

Flex :: Find Out Deselected Item In Spark List With Multiple Selection

Aug 3, 2010

In a spark list I could use the change event to find out which item has been selected or deselected. The dispatched IndexChangeEvent object has the properties newIndex and oldIndex holding this information.

But with multiple selection allowed this doesn't work anymore because newIndex and oldIndex could refer to indices of still selected elements.

A solution would be to copy the selectedIndices vector to another variable and compare this variable with selectedIndices after a change in selection, but this seems to be somewhat complex.

Does anyone know if there is an easy way two get the index/item a user is deselecting while other elements are still selected?

View 2 Replies

Flex :: Unable To Select Item In Spark.components.List After De-selection

Dec 21, 2010

I have a spark List defined as:

<s:List id="symbolList" dataProvider="{symbolListCollection}" change="symbolNameChangeHandler(event)"></s:List>

With the change handler defined like this:

protected function symbolNameChangeHandler(event:IndexChangeEvent):void {
symbolList.validateProperties();
changeSymbolView(symbolList.selectedItem);
}

and symbolListCollection as an ArrayList filled with Strings.

At first, the change event works fine, and I get what I expect.

However, if I Ctrl-click on the selected item, to de-select it, i am unable to ever select an item again.

When I click on something to try to select it, the change event DOES fire, however, the ItemChangeEvent has both oldIndex and newIndex set to -1

View 1 Replies

Actionscript 3 :: Maintain The Selected Item (instead Of Index) After A Spark List Sorts?

Jan 19, 2011

I change an item in Spark List. The item then moves to a different index in the list since I keep the List's dataProvider sorted. However, the selectedIndex stays where the item used to be. I want the List's selectedIndex to still be on the item that changed.

View 1 Replies

Flex :: Spark DataGrid On Mobile Application Handle Scroll And Selection Item?

Dec 15, 2011

I have a spark datagrid on a mobile application, I set the

interactionMode="touch"

and the dataGrid scrolling is good, I got some problems adding a selectionChange eventListener to it, because scrolling the dataGrid will automatically change the selection and instead simply scrolling it, the function binded will start...

How can I add the touch dalay before select the index, so if I scroll the grid the selection won't change, and it change only if I press the item without scrolling?

View 1 Replies

Actionscript 3 :: SelectedLabel Spark ComboBox = Returns The String For Display In An Item Rendered

Dec 20, 2011

this function bellow returns the String for display in an item renderer.

[Code]...

But i am blocked about the public function set selectedLabel(label:String):void is there anyone who know a function labelToItem or another solution to set my combobox selectedLabel

View 1 Replies

Flex :: Prevent A Default Chart Item Roll Over Highlight In A Spark Column Chart?

Mar 3, 2011

I'm trying to prevent a default chart item roll over highlight in a Spark column chart.If you look at any of the chart examples on this page , when you roll over any of the chart series items, they turn a darkened shade of their original colour. This is what I want to prevent.

So far I have had no luck with using the itemRollOverColor property, as this only allows you to set it to one specific colour for the whole chart (my app has several different coloured series on the chart at once). Also, trying to leverage the itemRollOver event (with preventDefault() etc) hasn't worked either.

View 1 Replies

ActionScript 2.0 :: Best Separator For Use With LoadVars

Sep 21, 2007

I have a project that needs to store user input on the server, then be able to reload it later.I am interested in opinions as to which separator would be best to use, ie comma, semicolon, tilde, etc. Of course whichever character it is, it will be restricted from usage by the user, so it must be uncommon.I'm leaning towards using the tilde, since I already use input textfield restrictions to prevent backticks for server security (same key on the keyboard). Seems to me as if the tilde is a very rarely used character, and so should be fine to exclude it from user inputs as well.

View 1 Replies







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