Scheduler

Modified: 2009/07/03 16:26 by Pavol - Categorized as: Extensions, Gaia 3.5
There have been many requests for this control lately, so here is our contribution. I hope somebody finds it usefull.

Day view

Day view

Week view

Week view

Month view

Month view


Bad news first. Project has been compiled in VS 2008 and .NET Framework 3.5. There is a bunch of 3.5 code everywhere, so it will take some time to convert it back to 2.0 if anybody's interested.



Edit

Overview

  • Scheduler has four basic views. Day, work week, week and month view
  • Should be localizable by setting Culture and other properties.
  • Has three options of quickly recognizing type of activity by it's background color, bar color or icon on the left
  • Can display holidays (if somebody fill them first :)
  • Can bind it to almost anything (any IEnumerable or DataTable)

Edit

ASPX Markup

Seems that doesn't work proper coloring here, so for now, just look to the demo project.

Edit

Properties

There is a bunch of properties, but I have no time to describe them now, so just look to SchedulerDemo project and most of them should be self-explanating. I will explain some of them though. In the Default.aspx you will find something like:

<SchedulerBindData Start="start" End="end" Header="subject" Description="description" BackColor="activitytype" IcoType="completed" IcoReminder="remind" ID="activityid" Bar="user" FullDayEvent="allday" />

which simply maps your properties to Scheduler. Simply if you cannot rename your property for some reason - map them. EG. Your activity name in the database is named subject, so simply say: Header="subject", otherwise you have to name it 'header'. Another thing is: Let's say you have two types of activities: Tasks(1) and meetings(2) (Column name in the database: activitytype) and you want to separate them by BackColor. So notice that there is BackColor="activitytype" in the previous lines. And if you don't want to return colors directly from the database, simply return their numbers (1,2) and define in the Scheduler that value 1 will have color "#FFC1DA" and value 2: "aqua".

<BarColors> <Compekon:SchedulerValueColor Value="1" Color="#FFC1DA" /><br /> <Compekon:SchedulerValueColor Value="2" Color="aqua" /> </BarColors>

InitTime property will scroll the table automatically to the time that you want so you won't have to scroll from the midnight every time you change your view.
WorkStart and WorkEnd properties define different colors for the work hours. There are more of them, I will write them here when there is time.

Sadly I have no opportunity at this moment to show an online demo example, but if someone do it, it'll be superb. But you can download the demo at least. It should work, just add reference to your own Gaia WebWidgets library (version 3.5+) and enjoy.

Edit

Final words

You'll find a AspectDraggableWithSnap cs and js files in the project. It is the exact AspectDraggable class from GaiaWare with little extra something. They let me to attach it to the project so you don't have to modify and compile the whole Gaia library. Thanks Gaiaware !!!

Using this component is of coarse at your own risk. Also my company allowed me to share this control with Gaia community and wishes this: You can use this control in non-commercial or internal applications for free (if you have some support section it would be nice to show this link bluejet.cz or compekon.cz) if you will use it for commercial applications contact and we will adjust conditions. (it's mostly symbolic than anything else...)

Regards Pavol

ScrewTurn Wiki version 2.0.33. Some of the icons created by FamFamFam.