Is there a way (or could there be a way) to set up customizable "hours" in DayPilot?
I'm planning on using this control in an educational setting (resource schedules for 11 school buildings), and they run on an hour schedule. (First hour is from 8:22 to 9:37, etc). The teachers who use the resource schedule won't want to have to know when third hour is, they will just want to reserve 3rd hour.
A few initial thoughts. Could there be some kind of hash table in the background that defines different time chunks as an "hour" but still outputs them as regular date and time?
Does this make sense?
Thanks! Great product!
du8die
-
6/6/2007 11:08:55 PM
This is difficult with the current version because it's designed for slots of the same length starting at XX:00 minutes.
But I'm thinking about a variation of the planned Days-Resources view (
DayPilot Pro 3.9). It should be possible to have both axes completely customized, e.g. to have resources on X and your custom hours on Y. I assume that you don't need events spanning across multiple cells...
We're evaluating controls for the same reason (school timetable scheduling) and also have to be able to only place events in certain predified time-slots (from 8:20 to 9:05, etc). And sadly we need events spanning multiple slots, so the suggestion from the previous post is not feasable.
As I can see from the last post. It is not that easy in DayPilot. So the question is more, how complicated would it be to change the source to handle this case? I'm prepared to invest some days to make it possible. But without buying the source yet, I can't check that, without checking it, I can't buy:-( I'd really love to use DayPilot Pro because it's just great and matching otherwise.
So if anyone who has a good knowledge of the code involved can give me some feedback or alternative suggestions, I'd be really greatful.
dany
-
10/9/2007 1:06:34 PM
I could provide you the source code for a review but I'm afraid DayPilotCalendar can't be easily modified for this purpose. However, this is a very interesting use-case and I would like to add full support for the future (but it would not be possible before January 1, 2008 (in a not-yet-scheduled 4.4 release, see the
roadmap).
At this moment, you could use a workaround (in DayPilotScheduler). In DayPilotScheduler, you are able to set the CellDuration in minutes. So provided that your time slots have the same duration you could override the column headers using BeforeTimeHeaderRender event and write custom text in the header cells. For the purpose of this hack, it wouldn't be strictly necessary that the CellDuration (and the cell start/end) matches your cells exactly as long as you are able to calculate it from that (and that is possible).
Please contact me at daypilot @ annpoint.com if you want to discuss more details.
Dan,
That's exactly the solution I came up with. If there are 8 school hours in a day, you take 24*60 = 1440 minutes divided by the number of hours, 8, for cell durations of 180 minutes. Then, you override the header text, and turn off shading for business hours, and you're all set. It'll look weird in the database, because the control will look at 00:00:00 to 03:00:00 as a scheduled block. So, your reporting will have to reflect those time slots.
K-
du8die
-
10/18/2007 8:45:27 PM
Thanks, for thegood and speedyanswers.
I've tried thehack, but looks like it doesn't fully work yet for me.
What I need is actually the DayPliotCalendar because I need lessons to span multiple cells. I tried setting the business hours to 08:00 to 16:00 and setting 1 cell per hour and HeightSpec to BusinessHoursNoScroll. That's how I get 8 lesson slots a day.I can set the weekdays easily at the top (using ViewType="Resources" and setting the columns), but when it get's to setting the row title to something like "08:05-08:50", I'm stuck. Is there no way to change that? Can I only change the column headers?
dany
-
11/13/2007 6:13:58 PM