Well a requirement has come up where we would like to have some sort of flex calendar component. In its simplest form it would be nice to show on the date chooser which days currently have at least one task. Sounds simple enough doesn’t it?
Maybe not so simple. As discussed with Jesse Warden on flexcoders, this could be quite overwhelming, with no simple solution. The current implementation of the DateChooser component doesnt really offer much leeway in terms of extension. As Jesse put it – “the not made to be extended datechooser”
But here goes nothing. After taking a look at the code I noticed that the Date Chooser is drawn by mx.controls.CalendarLayout. Isn’t this a lovely class, all 2000 lines of it hehe. Ah well, I found the methods I need to modify (one of them being about 400 lines of code alone) so I might as well take a stab at it.
Over the coming weeks I’ll see what I can muster up, and try and keep an update of my progess here for all to see. Kind of a step by step ‘make your own calendar’.
Stay tuned…
UPDATE
Well that kinda didn’t go as planned. I’ve completely dropped customising the DateChooser as it was going to take up time I just couldnt spare. But in the meantime, be sure to check out Keven Hoyt‘s post – Custom Calendaring With Flex.
Related posts:
4 Responses to Flex Calendar – can it be that hard?
Kevin Hoyt
May 5th, 2005 at 9:12 am
It’s actually relatively easy to roll your own calendar component. I’ve posted an example (based on the popular Broadmoor hotel calendar) on my blog at the following URL. I’d be a happy to talk/work with you about my implementation and how it might be used/extended in your project. Just let me know.
http://www.markme.com/hoyt/archives/007338.cfm
Brajeshwar
May 14th, 2005 at 4:37 pm
Flex 1.5, an Introduction
Here is a brief write-up about my take on Flex 1.5. Not very exhaustive but highlights few features I like best. More to follow in eventual post along with my development phases. Out of the many features of Flex 1.5, I particularly liked RSL or the Run…
http://www.brajeshwar.com/archives/2005/05/flex_15_an_intr.php
Fidel Guajardo
November 19th, 2005 at 2:27 am
Flex’s competitor, Open Laszlo, makes it easy to build a calendar. Their demo and source code is found at http://www.laszlosystems.com/demos/ I am sure Macromedia is looking into having a similar code base for us developers with which to build calendars.
pythagoras
February 7th, 2008 at 12:55 pm
check out this one, it’s not an extension of date chooser, bt a simplification of quietlyScheming’s calendar:
http://blog.flexcommunity.net/?p=11