Appointments can be dragged and dropped into the Schedule control from external sources. For example, it is possible to drag the appointment from the ListBox and drop it into the Schedule control.
Step 1: Create a Schedule control with multiple resource samples by referring to the following links.
Document Link: [Under the title “Horizontal Resource Grouping”]
Step 3: To display the appointments with categorize, add the category collection to the Schedule control. Refer the following code examples to add the categorizeSettings value in the Schedule control.
Also, refer to the following links to know about how to add categorize settings to the appointments in the Schedule control.
Step 4: To save and reflect the dropping of the appointment details in the Schedule control, you can save that appointment with the dragged item or object details. The following code example is to save the changes in the Schedule control. You can write the following code within the itemDropped method, that is triggered while dragging an appointment item from the ListBox control.
Note: The above code example is applicable for both the Horizontal & Vertical Orientation.
Step 4: Run the sample. The Schedule control and ListBox are displayed as follows.
Figure 1: Schedule control and ListBox display before drag and drop
Step 5: Now, you can drag the appointment item from the ListBox and drop the same to the Schedule control.
Figure 2: Schedule control with dropped appointments and the same item removed from the ListBox
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.