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

Resource Provider not available;e

0 Answers 16 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
david
Top achievements
Rank 1
david asked on 24 Dec 2017, 08:24 PM

I am trying to use resources in R2 2017 But it appears the resource mapping has changed and I no longer see the resource provider method if that is the case how then can I add the datasource of resoucrces to the calendar which will be a linq list. At present I was trying the below method but cannot access that method ?

 

SchedulerBindingDataSource dataSource = new SchedulerBindingDataSource();
               AppointmentMappingInfo appointmentMappingInfo = new AppointmentMappingInfo();
               BindingSource _bindingsource = new BindingSource();
               ResourceMappingInfo _resource = new ResourceMappingInfo();
               appointmentMappingInfo.Start = "ApptDate";
               appointmentMappingInfo.End = "AppEnd";
               appointmentMappingInfo.Duration = "ApptLength";
 
               appointmentMappingInfo.UniqueId = "ID";
 
               appointmentMappingInfo.Location = "Location";
 
               appointmentMappingInfo.Summary = "THIS IS A TEST FOR SUMMARY";
               appointmentMappingInfo.Description = "NAME";
 
               dataSource.EventProvider.Mapping = appointmentMappingInfo;
               dataSource.EventProvider.DataSource = _bindingsource;
 
               _bindingsource.DataSource = SourceDal.getAppointments(monthCalendar1.SelectionRange.Start);
 
               appointmentMappingInfo.ResourceId = "ProviderID";
 
 
 
 
 
 
 
               Resource resource = new Resource();
               resource.Id = new EventId(0);
               resource.Name = "Robert Shoemate";
               resource.Color = Color.Blue;
               resource.Visible = true;
               sourceNetAppointments.Resources.Add(resource);
               this.sourceNetAppointments.Resources
 
 
               this.sourceNetAppointments.ElementProvider = new MyElementProvider(this.sourceNetAppointments);
 
               this.sourceNetAppointments.DataSource = dataSource;

 

 

 

 

 

No answers yet. Maybe you can help?

Tags
Scheduler and Reminder
Asked by
david
Top achievements
Rank 1
Share this question
or