Flex - Custom DateField Component With ComboBox And Clear Button Inside The Dropdown Calendar?

Jul 31, 2010

i inserted a dateField component.on clicking it displays calender, i would like to add 2 comboboxes, i shows hours(0 to 23) other for minutes (0 to 59) to calender so tht the user can select the time along with the date and that wil be displayed in the text input as date and Time. one more thing i would like to add is clear button to clear the selected date to the calender.

View 1 Replies


Similar Posts:


Flex :: Alerts, Dropdown Calendar Of DateField, Cursors Resulting In Null Value References Once Embedded?

Aug 18, 2009

I have a Flex application embedded in a Flash application, which was working fine and currently works fine if not embedded. As of last Friday, when embedded the Alerts do not show (no error, just nothing), DateField Calendar dropdowns do not show (null value reference of DateField), and dynamically showing the busy cursor errors (null value reference). My code for the Flex app did not change, and I can't think of any reason outside of Flash Player updates (which I think unlikely) or something has changed in the Flash application that is embedding it.

View 1 Replies

Actionscript 3 :: Clear DateField In Flex 3

Oct 10, 2009

there's no way to clear a date after it has been inserted! I had to add an ugly button near it to clear it programmatically..

View 1 Replies

ActionScript 3 :: Custom ComboBox With Horizontal Line In DropDown

Mar 22, 2012

I want to create a Custom ComboBox in which the DropDown contains the Horizontal Line or you can say HRule immediate after the First Item. here I am providing you the image For that you can see I have used paint to draw the HRule I want component similar like that.

View 1 Replies

Actionscript 3 :: Why Won't Visual Elements Display Inside Custom Component Extended From Another Custom Component

Sep 6, 2011

I created a custom MXML component, TurboContent, that extends the NavigatorContent class:

<s:NavigatorContent xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">

[Code].....

In this case, the 'myButton' component never shows up, but all the elements of the base component do (3 buttons and a datagrid).

View 2 Replies

Flash :: Flex Custom Component With More Inside?

Apr 14, 2012

I am creating a custom component in Flex with extends the BorderContainer class, and I would like to be able to place additional content within the tagset when I use it in my main application, like this:

<components:CustomComponent title="Hello">
<s:Label text="If you have one enter it below:"/>
<mx:Spacer height="15" />

[Code]....

This works just fine, except that my component definition had some additional things inside of it, such as a <s:Label/> and styling, which is replaced by the content within the tagset above when I go to use it.

If I do not put anything within the tagset, the content that was originally in the component is not replaced.

Is there a way that I can simply append additional content inside of the component when I go to use it, instead of it being replaced each time?

View 1 Replies

Flex :: Fix ComboBox Dropdown In Fullscreen?

Mar 11, 2010

Short version: ComboBox's dropdown works and renders properly before fullscreen, but not during or after. I'm not totally sure how to ask this, so I've actually made a page demonstrating the error, with a very simple Flex app, and all three directions you need to experience the problem yourself.

For those of you not daring enough to follow my link above, I'll do my best to explain here. I've built a rather extensive Flex application (not the one in the link) that has some graphs and charts and checkboxes and other controls for those charts. At the bottom of app in a few of the application States, there is a ComboBox (like a <select> tag in HTML). Because this is at the very bottom, when you click it to access it's dropdown menu, Flex thoughtfully has it come out of the top.

[CODE]...

View 2 Replies

Actionscript 2.0 :: Datefield / Calendar / User Cannot Select Previous Data

Aug 27, 2009

I use a datefield on a form for user to pick an appointment date.All is working fine but I would like to make users cannot select previous date (ie yesterday).

View 3 Replies

AS3 :: Flex - Combobox Change Dropdown Position?

May 14, 2010

I'm trying to change the position of the dropdown list relative to the combobox item.Setting the position using comboBox.dropdown.x = 1337; doesn't work...

View 1 Replies

Flex :: Resize The Dropdown Of A Combobox Along With The Combo Box?

May 17, 2010

Background: I am doing some UI work where I allow the user to programatically add and resize controls on a canvas. Problem: When resizing a combo box through AS the dropdown stays at the same width as the first time it drops down. So user places combo box on the page, clicks the down arrow, sees the options, selects an option or clicks down arrow again to close, resizes the width of the drop down, clicks the down arrow. Now drop down is the same width as original. Have tried simple things like setting the width of the dropdown specifically and invalidating display list but it still doesn't work.

View 1 Replies

ActionScript 3.0 :: Change Dropdown Direction Of Datefield?

Jul 15, 2010

I want to change the dropdown driection of the calender of  datefield.since my width of the application is small.and also i want to reduce the size of the datefield's calender control.

View 1 Replies

Flex :: Displaying More Than 5 Things At A Time In A DropDown (ComboBox)?

Sep 17, 2009

I have a ComboBox in Flex with about 20 items. How do I display all of them in a dropdown with no scroll bar? Right now, Flex displays 5 at a time in the dropdown and puts a scrollbar to scroll for more.Here's an example:

http:[url].........How do I make the dropdown bigger in this example so it shows all 10 items at once?

View 1 Replies

Flex :: ComboBox Dropdown Scaling Does Not Follow DisplayList?

Jan 13, 2010

I've been working on an application (with ComboBoxes) that requires scaling the entire application based on screen resolution. I thought it would simply require changing the "scaleX" and "scaleY" properties of the top-level application, but discovered that the ComboBox dropdown doesn't appear to scale accordingly, as in the following example:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
applicationComplete="init()">

[Code]....

which results in the dropdown appearing (sliding down) unscaled until it reaches it's extended length and stops at which point it scales up and remains at that scale until it is closed. I have also found that if you call "invalidateDisplayList()" on the comboBox or the dropdown, then it undoes the scaling, so it appears that whenever the updateDisplayList is called, the dropdown only applies it's parent ComboBox's scaling, and not the ComboBox's parent container's scaling.

I understand that, as a pop-up, the dropdown isn't in the Application's or ComboBox's displayList tree, which appears to be the root of the problem (no pun intended).

View 3 Replies

Flex :: Dropdown Combobox Selected Background Color?

May 6, 2010

Flex is so tricky to style.

I have a combobox, when I arrow up and down over a select it has a background color, how do I change this color. This should be easy.

View 1 Replies

Combobox :: Flex Itemrenderer Issue With DropDown Control?

Oct 29, 2010

I want to show rich text in dropdown control, for which I am using the following renderer.

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

The renderer shows html text properly in the drop down list, but in the top most option (selected item) the whole HTML tag is shown instead of what the tag represents.

View 1 Replies

ActionScript 2.0 :: Add A DateField Using The DateField Component

Dec 8, 2009

I am making a form that pass's the Variables over to php. I am using Input text feilds and also a combo box. The text fields were a breeze and the combo box took a little bit of research but I got that working by assigning it a instance name of cBox and then using the following code to pass it through:

Code:
cBoxVar= cBox.getValue();

Now I want to add a DateField using the AS2 DateField Component. How would I pass it over to a variable so when the form collects at the end it will go over to the php?

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

Flex :: Mx:DateField And Binding Inside A Form?

Oct 28, 2011

I have a Form with several FormItems and one of those include an mx:DateField. I am not sure how I should bind the DateField values. I have tried the following which none work:

<mx:DateField yearNavigationEnabled="true" text="@{dateValue}"/>
<mx:DateField yearNavigationEnabled="true" selectedDate="{dateValue}"/>

Now eventually I am trying to store/retrieve the date as a string in the db.

View 2 Replies

AS2 :: IDE -Custom Mouse Showing Behind ComboBox Component?

Feb 17, 2009

I'm running into a problem where for my current project I need to use a large custom mouse for interaction throughout a website. The custom mouse (a movieclip) works fine until the user needs to select a option from a ComboBox.The custom mouse clicks the component fine but once the ComboBox expands with it's options the custom mouse appears behind the expanded list.Is there anything I can do to get this to work? I'd really rather not create a 'custom' comboBox for this project as the material was already prepared and set in stone. ps:: i found this information below, but it was for AS3 and I need AS2 and in any case didn't do anything for my movie when i tried it.

Code:
// http://danielmclaren.net/2008/03/tip...s-in-flash-as3
myCursor.mouseEnabled = false;

[code]......

View 2 Replies

Flex :: Disable DateField Component From User Input

Sep 14, 2011

I have a DateField component in Flex and I want to stop any user input. If I set the editable to "false" then it stops users changed the bits of the DateField box. It does NOT however stop them from clicking on the calendar icon next to it and updating the date. Is it possible to disable this? I basically want the component to be read only under some circumstances but not for it to have any alpha overlay. Therefore I want to use editable rather than enabled.

View 1 Replies

ActionScript 3.0 :: Add Custom Symbols To ComboBox Component Items?

Nov 15, 2007

I want to add a key to my ComboBox, so each item contains a little picture + text, is there any easy way to do it?

View 2 Replies

Flex :: Flex - Programmatically Close A DateField Component?

Oct 17, 2010

I'm using a dateField component (with editable = true) as an itemEditor in a dataGrid. Interestingly, when editing the textInput part of the dateField it doesn't seem to react to an ESC keydown as I would expect, i.e. reload old dateField value and give up focus. This seems to be standard for most other components, but not for as most other components do.

How would you go about implementing such behavior? I can listen to keydown == escape on the TextInput portion, but just realized that I don't know how to tell dateField to give up focus and politely close - in fact I'm not even sure that's the right strategy (maybe I should work at the DataGrid level?

View 1 Replies

Actionscript 3 :: Flex Custom Button Component?

Aug 17, 2009

I want my custom button to look like the button sample below. More specifically, I want the width of the button to be determined by the width of the largest word in the label (i.e. width of "Elongated" in my example). The label must wrap, not truncate. And I want only one pixel between the top edge of the icon and my button's top edge. I have tried lots of things but to no avail so far. I have reduced the horizontalGap and verticalGap to zero and padding to zero. But still nothing.

[Code]...

View 2 Replies

ActionScript 3.0 :: Custom Font On Individual Row Items In A ComboBox Component

Mar 30, 2009

I am trying to create a combobox where the items listed in the combobox are font names and each item will display using the font of the item label. For instance, one item label in the list is "New Times Roman" and I want that particular row in the combobox to have the text AND font of "New Times Roman". For some reason, inside of my custom CellRenderer class, I cannot seem to find a way to get the item label that corresponds to the CellRenderer and the CellRenderer.data item always appears to be null!

This is the code I am currently using:

//From the main class, I am creating an instance of the
CustomizableComboBox and adding in the font names I am interested
in.
var comboFont:CustomizableComboBox=new

[Code]....

View 5 Replies

Flex :: Create A Custom Component That Consists Of A Button

Jul 18, 2009

I am trying to create a custom component in flex that consists of a Button, and a TileList directly below that button. On button click event the TileList should open/close. The component works fine, but when I add it to my main flex app, inside a VBox, it simply opens and closes within the VBox. Because the height of the VBox is much smaller than the custom component's TileList, it causes scrollbars. My issue with it is that it should behave like a ComboBox/Pull-down menu and go over the VBox, instead of going inside it. how to overlay the custom component, so it behaves like a ComboBox/Pull-down?

View 1 Replies

Flex :: Accessing Custom Data On DayRender In Flextras Calendar?

Nov 29, 2010

I created a Custom Day Render and I would like to access some custom data that I am providing with in the Flextras Calendar dataProvider. here is the code that I have

<flextras:Calendar
id="calendar"
dayRenderer="com.healthways.healthhonors.itemrenderers.MyAwesomeDayRenderer"
monthHeaderRenderer="com.healthways.healthhonors.itemrenderers.MyAwesomeMonthRenderer"[code]...........

Here is the type of Object that I am creating and storying in an ArrayCollection witch gets passed to the Calenders dataProvider

myArrayCollection = new ArrayCollection([{date:new Date(), data:myObject}])

Here is what what my Day Render looks like

package com.healthways.healthhonors.itemrenderers
{
import com.healthways.vo.DateVO;[code]..............

how to see if a renderer has custom data so that I can do some logic on the renderers creation complete.

View 1 Replies

Actionscript 3 :: Flex: Refreshing Custom Mxml Component On Button Click

Mar 3, 2010

I have defined small MXML component which calls web service which returns random number on request, then my component displays the number.

How do I refresh the MXML from main application control, so it will recall server again?

View 1 Replies

Actionscript 3 :: Flex Calendar Component Lifecycle: ValidateNow - ValidateDisplayList - InvalidateDisplalList - CommitProperties

Nov 4, 2009

I am extending VBox to make a Calendar component. What method should I override to add the code to draw itself? What is the difference between all these methods? Is there something I should be putting in each one, or is there a specific method I can just override, add my drawing code, and have it work?

View 5 Replies

AS3 :: Flex - Auto-resize The Width Of A Spark Dropdown Component?

Nov 29, 2010

in flash builder 4 how do i use the skinning option to make sure the popup dropdown list changes it's width to fit the longest item in the list?(the prompt area - the component when it is closed - should not change it's width)

View 1 Replies

Actionscript 3 :: Flex 4 Disptaching Custom Event From Custom Component (why Flex Converting Custom Event To Mouseevent)?

Mar 2, 2012

This is NOT duplicate of my earlier post (its is slightly different)But this is similar issue with similar error but its not the same error The error I am getting now is below while dispatching the custom event from my custom component

TypeError: Error #1034: Type Coercion failed: cannot convert events::MapEvent@a74ab51 to flash.events.MouseEvent.
dispatchEvent(new MapEvent(MapEvent.CLICKED_ON_MAP));

Note: The error in my earlier post is giving below error message

Type Coercion failed: cannot convert flash.events::Event@81ecb79 to com.events.ShopEvent

The difference here are two things, the earlier error is while converting flash event to custom event and now this one is while converting custom event to flash event and secondly, I have no clue why it is trying to convert to the mouseevent where I am just dispatching my custom event with proper listeners.

This is my custome event

package events
{
import flash.events.Event;
import ui.map.MapElement;

[code]...

View 1 Replies







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