Skip to content
May 4 / Andrew Spaulding

Flex Calendar – can it be that hard?

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:

  1. What’s more than just a Flex Calendar?
  2. Flex Calendar – the most popular search string
  3. Sizing apps within the Loader control
Comments / Reactions / Trackbacks
  • http://www.markme.com/hoyt Kevin Hoyt

    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

  • http://www.markme.com/hoyt Kevin Hoyt

    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

  • Pingback: Brajeshwar

  • http://www.fixmywebsite.net Fidel Guajardo

    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.

  • http://www.fixmywebsite.net Fidel Guajardo

    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

    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

  • pythagoras

    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

  • Mike

    We are working on the flex calendar / schedule component. Check it out here: http://flex-calendar.com/demo . Comments and suggestions most welcome!