Laxmidi
Laxmidi

Reputation: 2684

Open Flex Datefield Calendar to Beginning of the SelectabeRange Instead of the End of it

I've got a Flex 3 datefield like this:

<mx:DateField id="myDateSelector"    
        selectableRange="{{ rangeStart : new Date(2011,0,1), rangeEnd: new Date(2011,3,30) }}" 
         />

It works fine. Jan 1, 2011 through April 30, 2011 are selectable. The only problem is that when you click on the calendar icon, it opens to April, the last month that is selectable. Is it possible to have it open to the beginning of the selectable range, Jan.?

Upvotes: 0

Views: 1201

Answers (1)

J_A_X
J_A_X

Reputation: 12847

Man, you sure like asking the same question in different context. Also, do some research before posting anything, this is getting ridiculous.

<mx:DateField selectedDate="{new Date(2011,0,1)}" selectableRange="{{ rangeStart : new Date(2011,0,1), rangeEnd: new Date(2011,3,30) }}" />

Next question, I'm flagging you for not even trying.

Upvotes: 1

Related Questions