This content has been marked as final. Show 11 replies
Selectable range does not allow me to insert a list of dates. It only takes 2 dates (the beginning & the end of the range date). Let say I want to enable the following dates. How can I do this?
10/28/2007, 11/05/2007, 11/06/2007, 11/07/2007, 11/08/2007, 11/09/2007,11/19/2007, 11/22/2007, 11/28/2007, 11/29/2007, 11/30/2007, 12/01/2007, 12/02/2007, 12/03/2007.
You can mix the selectableRrange with the disabledRanges, so make your selectable range from 10/28/2007 to 12/03/2007 and then use the disabledRanges to mark those dates you don't want enabled.
The other solution will be to use a ComboBox, i really don't see the point of using a DateChoose for such a small and weird range of dates
Your suggestion is what I had in mind from the first post. But, I only have a list of available dates. So, I will need to check EACH day within the range and disable it. This would be a pain not to mention about the run time performance ( if I have a long list).
The reason I want to use the dateChooser is that could bring a better visual for the clients.
And how about extending the DateChooser to create your own component?
I am pretty sure you could achieve a similar visual experience for the user and at the same time adapt it to your needs.
I know the ComboBox is kinda basic for visual purposes, but you could apply a skin or effect to make it more attractive. Since you have such a small group of dates, you could use other type of components, like lists which are really good for visual purposes if you appky the correct styles and css.
Finally, why don't you write to Adobe to see if it is possible to include such behavior in Flex 3? I think it would be a nice feature to have in the DateChooser component. I lost the URL where you can request future funcionality to the framework but must be somewhere in the Adobe site.
My list is just an example. My actual list is very long. That's why it becomes a headache if I implement what you've suggested.
I am trying to get help here. Hopefully there is a way around. If not, I guess I will send them an e-mail and put the function in the "wish list". :(
I built a DateChooser control which can do what you are looking for. The swc is available here http://sreenivas.ramaswamy.googlepages.com/FlexEx2.swc.
I have done basic testing and it seems to work.
I used the following file http://sreenivas.ramaswamy.googlepages.com/testChooser.mxml.
If you want to give it a try go ahead. I would be very happy to fix any bugs you find.
Please mail me directly at email@example.com.
Please note that FlexEx2.swc needs to appear before framework.swc during compilation in the include-library path so that the DateChooser in the FlexEx2.swc gets picked up instead of the one in framework.swc.
Cool dude, i will give a shot later.
That's why i meant in my latest post, if the default DateChooser doesn't work for you, then extend it
I appricated your effort. I will test it out :)
I tried extending it .....but ran into issues...so copied and modified the code :)