Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to generate multi-resource appointments at runtime

$
0
0
This example is created based on the  How to: Enable Multi-resource Appointments article and demonstrates how to create a multi-resource appointment in code and add it to the SchedulerControl.
Question Comments

Added By: Jean-François Dion 1 at: 11/3/2015 1:34:23 PM    

Just take care of the .net type specified in xml ResourceId, that match the type of property corresponding the Id in your object.

Added By: Yulia (DevExpress Support) at: 11/4/2015 5:06:16 AM    

Hello,

The Type property in an XML string that represents Ids of resources associated with an appointment should match the type of the data field mapped to Resource.Id.  In this example, a CustomResource business object has the ResID property of the System.Int32 type. So, the Type property should be set to System.Int32.

While researching this subject, I noticed that the data field  mapped to the AppointmentMappingInfo.ResourceId property is of the System.Object type. It is recommended to use a data field of the string type to store XML text with information on assigned resources. So, I will update the example accordingly.

Should you have additional questions in this regard, let me know. I will be happy to assist you.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>