Radscheduler - Resource Grouping?

5 posts, 0 answers
  1. jeff357
    jeff357 avatar
    27 posts
    Member since:
    Apr 2008

    Posted 18 Oct 2011 Link to this post

    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  
  2. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 20 Oct 2011 Link to this post

    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.

  3. UI for WinForms is Visual Studio 2017 Ready
  4. jeff357
    jeff357 avatar
    27 posts
    Member since:
    Apr 2008

    Posted 20 Oct 2011 Link to this post

     
  5. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 21 Oct 2011 Link to this post

    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.

  6. jeff357
    jeff357 avatar
    27 posts
    Member since:
    Apr 2008

    Posted 21 Oct 2011 Link to this post

     
Back to Top
UI for WinForms is Visual Studio 2017 Ready