Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Timetable view by resource (Read 3574 times)
john6630
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Sep 20th, 2010
Timetable view by resource
Feb 21st, 2013 at 3:49pm
Print Post  
Hi Meppy,
I would like to show a timetable (day planner) view for a single date with each column representing a resource. Is that possible? If so, how and/or do you have a sample I can download and study?

Currently I show the calendar for 1 or 2 week intervals for each resource. I want to allow the user to be able to see all resources on a single date.

Thanks,
John

PS I have been using the calendar for quite a while and I LOVE IT! A great product.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Timetable view by resource
Reply #1 - Feb 22nd, 2013 at 7:14am
Print Post  
Hi John,

You can use grouping in the Timetable view to display one (or more) day for several resources at a time. To enable grouping, select the resources to group by by adding them to the respective collection of the Calendar class. For example, to group by general resources, add the Resource objects to Calendar.Resources, to group by contacts, add the Contact objects to Calendar.Contacts, and so on. Finally, set Calendar.GroupType to the appropriate value. In order to see more resources simultaneously, without the need to scroll, set the Calendar.TimetableSettings.VisibleColumns property. Here is the code that enables grouping by general resources:

Code
Select All
// Create the resources
Resource res1 = new Resource();
res1.Name = "resource #1";
Resource res2 = new Resource();
res2.Name = "resource #2";
Resource res3 = new Resource();
res3.Name = "resource #3";

// Add the resources to the schedule
calendar1.Schedule.Resources.Add(res1);
calendar1.Schedule.Resources.Add(res2);
calendar1.Schedule.Resources.Add(res3);

// Select the resources to group by
calendar1.Resources.Add(res1);
calendar1.Resources.Add(res2);
calendar1.Resources.Add(res3);

// Enable grouping
calendar1.GroupType = GroupType.GroupByResources;

// Make all resources visible
calendar1.TimetableSettings.VisibleColumns = calendar1.Resources.Count;

// Switch to timetable view
calendar1.CurrentView = CalendarView.Timetable; 


Regards,
Meppy
  
Back to top
 
IP Logged
 
john6630
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Sep 20th, 2010
Re: Timetable view by resource
Reply #2 - Feb 25th, 2013 at 2:59pm
Print Post  
Thank you Meppy,
That should do it for me.

John
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint