View Full Version : Extend DatePicker to create event calendar
ntulip
8 Aug 2007, 12:40 PM
To All,
Can anyone provide some guidance, tips, etc. on creating an Event Calendar widget by extending the DatePicker widget?? :-/
Some questions I have are:
Is Ext.DatePicker the best way to go?
How hard would it be to extend DatePicker to provide it a data source for onRender?
Should I write my own component?
Am I nuts?
jordansjones
8 Aug 2007, 1:14 PM
I would like to see something like this.
Juanito
8 Aug 2007, 1:46 PM
This sounds like a hard task. I don't think it can be done by extending the DatePicker
If you describe what you want your end product to be (event calendars can vary a lot) it may be easier to help you.
Having said that, one simple way to implement an event calendar (without extending DatePicker) would be to trap the select event and display a Ext.Layer containing the events for that day. That way all you have to implement is a widget that displays events for a day inside that layer.
Hope this helps a bit.
--Juan
ntulip
8 Aug 2007, 1:52 PM
Juanito,
What I would like to have is a day/week/month calendar rendering. I would settle for a monthly view at first also. I would like to pass a set of data to the calendar which would be displayed under the appropriate date when the calendar renders.
In the mean time, I have thought about adding context menu support to the DatePicker so long as I can render the calendar on the page without it being a popup. Then show the events in a BasicDialog, etc.
Nick
This sounds like a hard task. I don't think it can be done by extending the DatePicker
If you describe what you want your end product to be (event calendars can vary a lot) it may be easier to help you.
Having said that, one simple way to implement an event calendar (without extending DatePicker) would be to trap the select event and display a Ext.Layer containing the events for that day. That way all you have to implement is a widget that displays events for a day inside that layer.
Hope this helps a bit.
--Juan
Juanito
9 Aug 2007, 9:24 AM
So it does seem that you want something that does a lot more than the DatePicker. You should create your own EventCalendar object. It could use a DatePicker to choose the current page. I don't think it's worth the effort of trying to modify DatePicker to render custom content in each cell (and the cells are tiny)
--Juan
badgerd
3 Dec 2007, 2:03 PM
Just wondering if anyone has come up with an Event Calendar yet? And if the source may be viewable to get a start?
DigitalSkyline
3 Dec 2007, 4:07 PM
This has been discussed but its the kind of project I think people want to get paid for... for what I think are obvious reasons. That being said, it sure would make a nice extension :)
I was thinking along the same lines, but datepicker is not extendable in that way. However, if you started with datepicker source, changed the name to a ux, added your own css to it, you could probably hack a month view panel pretty quickly. I haven't spent a lot of time on it, right now my server generates my calendars... moving to full Ext is an eventual goal. Just too low on the list of priorites at the moment :)
badgerd
3 Dec 2007, 8:16 PM
I have managed to get a start in creating an event calendar.... just a work in progress atm :)
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.