Download
Prices
Login
Home
Samples
Blogs
Forum
Developer
Product
Company
Gaia Ajax Docs
Search
Advanced Search »
All Pages
New Page
Categories
Learn More
Introduction
Key Features
Roadmap
Online Samples
Case Studies
Customer Kudos
Getting Started
Download
Tutorials
Extensions
Documentation
Gaia TV
API reference
FAQ
Forum
Known issues
How to report bugs
About Gaia Ajax
Buy License
Dual License
About Gaiaware
Join Gaia Ajax on LinkedIn
Back
History
Scheduler
There have been many requests for this control lately, so here is our contribution. I hope somebody finds it usefull. [imageleft|Day view|GetThumb.aspx?Image=Scheduler/day.png|{UP}Scheduler/day.png] [imageleft|Week view|GetThumb.aspx?Image=Scheduler/week.png|{UP}Scheduler/week.png] [imageleft|Month view|GetThumb.aspx?Image=Scheduler/month.png|{UP}Scheduler/month.png] 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. ====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)'' ====ASPX Markup==== Seems that doesn't work proper coloring here, so for now, just look to the demo project. ====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: <esc> <SchedulerBindData Start="start" End="end" Header="subject" Description="description" BackColor="activitytype" IcoType="completed" IcoReminder="remind" ID="activityid" Bar="user" FullDayEvent="allday" /> </esc> 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". <esc> <BarColors> <Compekon:SchedulerValueColor Value="1" Color="#FFC1DA" /><br /> <Compekon:SchedulerValueColor Value="2" Color="aqua" /> </BarColors> </esc> '''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. <br /> '''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. ====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 [http://www.bluejet.cz|bluejet.cz] or [http://www.compekon.cz|compekon.cz]) if you will use it for commercial applications contact [obchod@compekon.cz|obchod@compekon.cz] and we will adjust conditions. (it's mostly symbolic than anything else...) Regards Pavol [attachment:Scheduler/Scheduler.zip]
ScrewTurn Wiki
version 2.0.33. Some of the icons created by
FamFamFam
.