Contents
Installation, Deployment and Distribution
Licensing
Buttons
Chart (obsolete)
DropDown and ListControl
Editors
Forms and Dialogs
Menus
Panels and Labels
Track and Status Controls
Telerik Presentation Framework
Themes
Tools
For More Help
|
|
        RELATED VIDEOS | RELATED BLOGS |
Resource Grouping in the RadSchedulerIn this webinar, Telerik Developer Support
Specialist Robert Shoemate will introduce RadScheduler and demonstrate how to utilize
its powerful feature set in your own applications. By attending this webinar, you will
learn about features such as codeless data binding, adding custom fields, and UI customization.
(Runtime: 55:58)
http://tv.telerik.com/winforms/radscheduler/resource-grouping-radscheduler | RadControls for WinForms Q3 2009 - RadScheduler Resource Grouping
Q3 marks the release of some fantastic new features in the RadControls for WinForms.
I know many of you have been waiting for one feature in particular... resource grouping.
Well, I'm happy to say, the wait is over, resource grouping is here! Today, I am going to
take some time out to explain to you how it works.
Read full post ... |
RadScheduler control allows you to define custom resources that can be assigned to the appointments. Custom resources let you associate additional information with your appointments. Since custom resources have a limited number of values, RadScheduler can group appointments based on the resources associated with them. For example, you can book different facilities for a variety of events.
If you want to group RadScheduler by resources you can use the GroupType property. It has two available values – None and Resources.
Copy[C#] this.radScheduler1.GroupType = GroupType.Resource; Copy[VB.NET] Me.RadScheduler1.GroupType = GroupType.Resource You can add/remove resources using the RadScheduler’s Resources collection. The resources in RadScheduler for Winforms are represented by the Resource class and you can assign it text, color and image values. Copy[C#] Color[] colors = new Color[]{Color.LightBlue, Color.LightGreen, Color.LightYellow,
Color.Red, Color.Orange, Color.Pink, Color.Purple, Color.Peru, Color.PowderBlue};
string[] names = new string[]{"Alan Smith", "Anne Dodsworth",
"Boyan Mastoni", "Richard Duncan", "Maria Shnaider"};
for (int i = 0; i < names.Length; i++)
{
Resource resource = new Resource();
resource.Id = new EventId(i);
resource.Name = names[i];
resource.Color = colors[i];
resource.Image = this.imageList1.Images[i];
this.radScheduler1.Resources.Add(resource);
} Copy[VB.NET] Dim colors() As Color = {Color.LightBlue, Color.LightGreen, Color.LightYellow, Color.Red, Color.Orange, Color.Pink, Color.Purple, Color.Peru, Color.PowderBlue}
Dim names() As String = {"Alan Smith", "Anne Dodsworth", "Boyan Mastoni", "Richard Duncan", "Maria Shnaider"}
For i As Integer = 0 To names.Length - 1
Dim resource As New Telerik.WinControls.UI.Resource()
resource.Id = New EventId(i)
resource.Name = names(i)
resource.Color = colors(i)
resource.Image = Me.imageList1.Images(i)
Me.RadScheduler1.Resources.Add(resource)
Next i You can use the SchedulerView’s ResourcesPerView property to change the number of visible resources. Copy[C#] this.radScheduler1.GetDayView().ResourcesPerView = 2; Copy[VB.NET] Me.RadScheduler1.GetDayView().ResourcesPerView = 2
|