Hi Andres,
We appreciate your patience.
We are analyzed your requirements of showing events which are created in google calendar, in our SfSchedule control. For that please follow the below procedures to achieve your requirement.
Configure your application with Google APIs by referring the below documentation,
In order to get a google calendar events we can have a model class in our application as like below,
[C#]
public class GenericEvent { public string Title { get; set; } public string Location { get; set; } public DateTime StartTime { get; set; } public DateTime EndTime { get; set; } } |
So that the collection of google calendar events can be maintained in a list
[C#]
List<GenericEvent> googleEventsCollections = new List<GenericEvent>(); |
As Schedule control is having AppointmentMapping feature in it, we are able to map custom data to the control, so in order to map the above model class, please refer the below code snippet,
[C#]
//Mapping the custom appointment to the schedule
ScheduleAppointmentMapping scheduleAppointmentMapping = new ScheduleAppointmentMapping(); scheduleAppointmentMapping.SubjectMapping = "Title"; scheduleAppointmentMapping.LocationMapping = "Location"; scheduleAppointmentMapping.StartTimeMapping = "StartTime"; scheduleAppointmentMapping.EndTimeMapping = "EndTime"; schedule.AppointmentMapping = scheduleAppointmentMapping; schedule.DataSource = googleEventsCollections; |
If the provided solution doesn’t meet you requirement, please revert us back with your query. We are happy to assist you.
Regards,
Sivakumar P