Saturday, January 03, 2009

Modify Height and Width of Popup Date-Chooser-Calendar in Flex-DateField

The DateField control is a text field that shows the date with a calendar icon.When clicking on this calendar icon the DateChooser calendar will open.
When the DateChooser control is open, the user can scroll through months and years, and select a date. When a date is selected, the DateChooser control closes, and the text field shows the selected date.

This DateChooser will open in its default size,but our applications need some different different size DateChooser.there is no provision in flex to achieve this.

To set the Custom size to DateChooser's Calendar explicitly you have to render the mx.controls.DateField

The following example shows how you can change the default deafult height and width of DateChooser's -calendar appears in a DateField control in Flex .

ActionScript Code :

public class DateField extends mx.controls.DateField
public function DateField()
override protected function commitProperties():void
dropdown.width = 100;
dropdown.height = 100;
dropdown.yearNavigationEnabled = true;

This simple code do the can expand the above code for changing other default properties also.

Bookmark and Share


dissertation subject April 27, 2013 at 12:18 AM  

I am quite sure they will learn lots of new stuff here than anybody else!

Unknown September 23, 2014 at 11:30 PM  

To be honest, you are really impressive. Although I am not fond of reading, but I read your post
completely and concluded that there are some people who write effectivelyYour working is purposeful and subjective.
Law Essay Help

Post a Comment

Tech World

Label Cloud

Must Buy

  © Blogger templates by updated with tips

Back to TOP