Step 5: Adding Contacts and Resources Data Sources

Now you can map the SalesPerson and Resource tables to the C1Scheduler control, which will allow users to add contacts and resources to their appointments.

  1. Click the Add Data Item button in the Calendar screen designer.
  2. In the Add Data Item dialog box, select Query and choose SalesPersons, the Return Type SalesPerson (All) option, and click OK.
  3. Under C1Scheduler, click Add | Sales Persons.
  4. By default, Sales Persons is added as a Data Grid control. Change it to a C1Contacts control.
  5. Select the C1ContactPlaceholder control and set the properties as in the following image:

       

    Note that leaving the Color property unset causes it to default to the Text setting. We do not need to set it for this example.

  6. Repeat steps 1-5 of this topic to add Resources to the screen, only make it a C1Resources control.

Now it's time to run the application and check out the schedule!

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback