This is a migrated thread and some comments may be shown as answers.

Radscheduler - Resource Grouping?

4 Answers 164 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
jeff357
Top achievements
Rank 2
jeff357 asked on 18 Oct 2011, 05:17 PM
Hi ALL,
   vb.net 2.0 sp2 visual studio 2010 sp1 win 7 ult x64 / x86 build mode...
       
           I figured out how to show 4 weeks in the scheduler but...
     I cant figure out how to load and save appointments. This 
     Probably means somehow saving different schedulers is
     Tied into saving resources (User 1, User 2, User 3, User 4,
     I am using a SQL clone VistaDB 4.2.
                                                          Any help would be appreciated!     
                                                                             Jeffery Link  

4 Answers, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 20 Oct 2011, 10:05 AM
Hi Jeff,

Thank you for writing.

It is not clear to me what are you trying to achieve and what is the problem you are experiencing. Could you please post some more information about your case? I will gladly assist you when I understand your requirements.

I am looking forward to your reply.

Best wishes,
Ivan Todorov
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

0
jeff357
Top achievements
Rank 2
answered on 20 Oct 2011, 01:18 PM
 
0
Ivan Todorov
Telerik team
answered on 21 Oct 2011, 01:42 PM
Hello Jeff,

Thank you for your reply.

Although, I am still not sure I fully understand your scenario, the code that you have posted may be improved a bit. The first thing is that you need to set the GroupType property after you have added the resources, otherwise this will not have any effect. The second thing is that the GetDayView() method will return null if your current view is not DayView and this might cause an exception. I would suggest trying the following code snippet:
Dim colors() As Color = {Color.Red, Color.Blue, Color.Green, Color.Yellow}
Dim names() As String = {"User 1", "User 2", "User 3", "User 4"}
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
 
Me.RadScheduler1.GroupType = GroupType.Resource
Me.RadScheduler1.ActiveView.ResourcesPerView = 2

As to the user choosing his resource, RadScheduler does not support such functionality and always displays all resources that are loaded. Therefore, if you need to show only the resources that corresponds to the use, you would need to implement your own resource-loading logic.

I hope I was helpful. If you are still having problems, feel free to open a new support ticket and attach a sample project that demonstrates your approach. Be sure to mention your exact requirements and the exact difficulties you are experiencing as this will let us provide you with a better support.

Greetings,
Ivan Todorov
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

0
jeff357
Top achievements
Rank 2
answered on 22 Oct 2011, 03:00 AM
 
Tags
Scheduler and Reminder
Asked by
jeff357
Top achievements
Rank 2
Answers by
Ivan Todorov
Telerik team
jeff357
Top achievements
Rank 2
Share this question
or