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

Resource Grouping not working

3 Answers 59 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 07 Feb 2014, 05:35 PM
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

3 Answers, 1 is accepted

Sort by
0
Jeff
Top achievements
Rank 1
answered on 07 Feb 2014, 07:31 PM
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?
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 12 Feb 2014, 04:41 PM
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.

Regards,
Desislava
Telerik

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).

0
Jeff
Top achievements
Rank 1
answered on 17 Jun 2014, 09:41 PM
I've fixed this. Thank you for your help.
Tags
Scheduler and Reminder
Asked by
Jeff
Top achievements
Rank 1
Answers by
Jeff
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or