Resource Grouping not working

4 posts, 0 answers
  1. Jeff
    Jeff avatar
    48 posts
    Member since:
    Apr 2012

    Posted 07 Feb 2014 Link to this post

    I've followed every example I can find and I must be missing something.

    When I group, I see scheduler shows the resources in the columns, but there are no appointments. I notice that "ConvertResourceToDataSource" and "ConvertResourceToScheduler" never fire.

    This is my code to group by the "LocationID" field:
    Private Sub ButtonGroupLocation_Click(sender As System.Object, e As System.EventArgs) Handles ButtonGroupLocation.Click
            Grouped = True
            Dim AppointmentMapping As New AppointmentMappingInfo()
            Dim ResourceMapping As New ResourceMappingInfo()
            AppointmentMapping.Start = "Start"
            AppointmentMapping.End = "Stop"
            AppointmentMapping.Duration = ""
            AppointmentMapping.Summary = "Summary"
            AppointmentMapping.Description = ""
            AppointmentMapping.Location = "LocationID"
            AppointmentMapping.Visible = ""
            AppointmentMapping.AllDay = ""
            AppointmentMapping.AllowDelete = ""
            AppointmentMapping.AllowEdit = ""
            AppointmentMapping.UniqueId = "ID"
            AppointmentMapping.BackgroundId = "BackgroundID"
            AppointmentMapping.StatusId = "StatusID"
            AppointmentMapping.RecurrenceRule = "RecurrenceRule"
            AppointmentMapping.MasterEventId = ""
            AppointmentMapping.ResourceId = "LocationID"
            AppointmentMapping.RecurrenceId = ""
            AppointmentMapping.Resources = ""
            AppointmentMapping.Exceptions = ""
            AppointmentMapping.FindBySchedulerProperty("ResourceId").ConvertToDataSource = AddressOf ConvertResourceToDataSource
            AppointmentMapping.FindBySchedulerProperty("ResourceId").ConvertToScheduler = AddressOf ConvertResourceToScheduler
            ResourceMapping.Name = "Name"
            ResourceMapping.Id = "ID"
            SchedulerBindingDataSource1.ResourceProvider.Mapping = ResourceMapping
            SchedulerBindingDataSource1.ResourceProvider.DataSource = ExecuSuitePMSDataSet.ActLocations
            SchedulerBindingDataSource1.EventProvider.Mapping = AppointmentMapping
            SchedulerBindingDataSource1.EventProvider.DataSource = ExecuSuitePMSDataSet.ActActivitySchedule
            RadScheduler1.DataSource = Me.SchedulerBindingDataSource1
            RadScheduler1.GroupType = GroupType.Resource
            RadScheduler1.ActiveView.ResourcesPerView = 10
        End Sub
  2. Jeff
    Jeff avatar
    48 posts
    Member since:
    Apr 2012

    Posted 07 Feb 2014 in reply to Jeff Link to this post

    I just created a test project and the two subs I mentioned do fire. What could be stopping them and is there a way to force them?
  3. DevCraft R3 2016 release webinar banner
  4. Dess
    Dess avatar
    1562 posts

    Posted 12 Feb 2014 Link to this post

    Hello Jeff,

    Thank you for contacting Telerik Support.

    Our Data Binding Walkthrough help article demonstrates the main steps in order to perform correct RadScheduler binding. In addition it is possible to add grouping by resource. Please find attached a sample project. Note that the AppointmentMappingInfo.Resources is not supposed to be empty string.

    I hope this information helps. Should you have further questions, I would be glad to help.


    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

  5. Jeff
    Jeff avatar
    48 posts
    Member since:
    Apr 2012

    Posted 17 Jun 2014 Link to this post

    I've fixed this. Thank you for your help.
Back to Top