Data Binding Support Overview
Data binding allows you to establish a link between the UI and the underlying business logic and keep them synchronized. It means that when a value is changed in the business layer, that change is automatically populated to the UI and vice versa. Of course, in order to work, you have to implement the proper notification or to use objects that have already implemented it.
Binding to RadScheduleView involves the following properties:
AppointmentsSource
AppointmentsSource - gets or sets the data source (IEnumerable) used to generate the Appointments in the RadScheduleView control. It can be bound to data from a variety of data sources in the form of common language runtime (CLR) objects and XML.
Note that the data source passed to the property AppointmentsSource should contain only objects that implement the IAppointment interface.
Example 1: Defining the AppointmentsSource collection in the view model
Example 2: Binding the AppointmentsSource
ResourceTypesSource
ResourceTypesSource - gets or sets the data source (IEnumerable) used to generate the ResourceTypes of the RadScheduleView control. It can be bound to data from a variety of data sources in the form of common language runtime (CLR) objects and XML.
Note that the data source passed to the property ResourceTypesSource should contain only objects of type ResourceType.
Example 3: Defining the ResourceTypesSource collection in the view model
Example 4: Binding the ResourceTypesSource
CategoriesSource
CategoriesSource - gets or sets the data source (IEnumerable) used to generate the Categories in the RadScheduleView control. It can be bound to data from a variety of data sources in the form of common language runtime (CLR) objects and XML.
Note that the data source passed to the property CategoriesSource should contain only objects of type Category.
Example 5: Defining the Categories collection in the view model
Example 6: Binding the CategoriesSource
TimeMarkersSource
TimeMarkersSource - gets or sets the data source (IEnumerable) used to generate the TimeMarkers in the RadScheduleView control. It can be bound to data from a variety of data sources in the form of common language runtime (CLR) objects and XML.
Note that the data source passed to the property TimeMarkersSource should contain only objects of type TimeMarker.
Example 7: Defining the TimeMarkers collection in the view model
Example 8: Binding the TimeMarkersSource
GroupDescriptionsSource
GroupDescriptionsSource - gets or sets the data source (IEnumerable<GroupDescription>) used to generate the GroupDescriptions in the RadScheduleView control. It can be bound to data from a variety of data sources in the form of common language runtime (CLR) objects and XML.
Note that the data source passed to the property GroupDescriptionsSource should contain only objects of type GroupDescription.