It is possible to bind Data for Silverlight to Schedule for Silverlight. For an in-depth sample, see the C1Scheduler_DataBinding sample installed with Silverlight Edition.
The C1Scheduler_DataBinding sample is similar to the MasterDetail sample except for the following differences:
C# |
Copy Code |
---|---|
// set mappings for AppointmentStorage // set mapping names to the names of Appointment table columns AppointmentMappingCollection mappings = sched1.DataStorage.AppointmentStorage.Mappings; mappings.IdMapping.MappingName = "Id"; mappings.Subject.MappingName = "Subject"; mappings.Body.MappingName = "Body"; mappings.End.MappingName = "End"; mappings.Start.MappingName = "Start"; mappings.Location.MappingName = "Location"; mappings.AppointmentProperties.MappingName = "Properties"; ... // set C1Scheduler data source to DataTable loaded from server sched1.DataStorage.AppointmentStorage.DataSource = _dtAppointments; |