XtraScheduler – Getting Started
In this lesson, we shall create a simple scheduling application. This application will consist of two controls – the SchedulerControl and the DateNavigator control. We’ll simply drop these controls onto a Form, lay them out, and that’s all.
- By default, all the scheduler control items are located in one tab of the Toolbox.
- We’ll select the SchedulerControl item and drop it onto the form, and then dock it to fill the form.
- You’ll see that the Scheduler Storage control is created automatically for you. It stores appointments and resources for the Scheduler.
- It is bound to the SchedulerControl via its Storage property.
- Now select the DateNavigator item in the Toolbox and drop it onto the form.
- The SchedulerControl property of the DateNavigator is automatically set to the existing instance of the scheduler control.
- We’ll dock it to the right.
- Now pay attention to the “Features Indicator”. It is visible only at design time. It indicates what settings are required for the control to be sure it will work as expected.
- Note that the “Start” property of the SchedulerControl indicates the date on which the scheduler shows its data.
- Now we’ll run the application and see the result.
- The DateNavigator control is already bound to the scheduler, and when the dates are selected, the scheduler is changed to display the selection.
- Now let’s click the week number and select the entire week.
- The Scheduler changes its view mode to WeekView.
- Now click on a date in the DateNavigator to see the DayView.
- If you wish to select several different dates, press Ctrl and select another date item in the DateNavigator. The scheduler displays all the dates using the same DayView mode.
- If you left-click and drag the mouse along the DateNavigator, you will select a continuous range of dates.
- When this range has the length of a week, the scheduler displays it with the Week view.
- When the length is more than a week – the Month view is used instead.
- To change the scheduler’s view from the context menu, just right-click within the time cell region and select the desired view.
- Now let’s create an appointment. We’ll select the time cells and right-click for the “New Appointment…” menu item.
- We’ll fill in the necessary fields.
- You can also make the appointment recurrent.
- Within the recurrence dialog, you can set typical fields like the duration, when the recurrence occurs, and the range of the recurrence.
- While editing the appointment, you can add a reminder to it . . . and turn it on.
That’s it! We’ve created a simple scheduling application with the XtraScheduler!