Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
675
Trouble Binding ListScheduleDataConnector.ResourceItemsSource to a DataTable
posted

I'm using a DataTable filled from a SQLServer database to hold my Resource Items.

After setting the ListScheduleDataConnector.ResourceItemsSource to this DataTable,

and setting the Property Mappings like this:

ListScheduleDataConnector.ResourcePropertyMappings = new ResourcePropertyMappingCollection();
ListScheduleDataConnector.ResourcePropertyMappings.UseDefaultMappings = true;

the Schedule Control shows this error:

Error Details:
1) Application configuration error. The functionality is not supported.
Error Details:
The following property mappings are missing for Resource items:
Id

My table does however, include a Primary Key field called Id.

I'm also having a similar problem with binding the ResourceCalendarItemsSource and the AppointmentItemsSource to DataTables.

Does the ListScheduleDataConnector not support binding to DataTables?