WinForms Scheduler: Providing a Ribbon UI


Uploaded by DeveloperExpress on 02.07.2012

Transcript:
Welcome to the DevExpress Learn Now series. Quick tutorials to help you get started using
DevExpress controls. Adding a Scheduler ribbon gives your end-users
a quick and easy way to navigate trhough, and edit schedules at runtime.
In this video, we'll look at how to quickly add a ribbon control to a scheduling aplication.
So let's get started... We'll start with an application that already
has a scheduler bound to data. The scheduler active view is set to Week View.
Click the SchedulerControl's smart tag and let’s Select Create Ribbon from the SchedulerControl
Tasks list. The RibbonControl will is automatically located on the top of the form.
After the RibbonControl is added, a set of Create Bar items will appear at the top of
the SchedulerControl Tasks list. We’ll Click the Create All Bars item to
generate all available scheduler Ribbon pages at once.
Now let’s run the project and take a look at our Ribbon UI.
Let’s open an .ics file to load appointment data in the scheduler.
You can also save any appointment changes by exporting data in the iCalendar format.
Under the file option, we also have our Print group which contains printing preview option
along with the capability to print the scheduler directly and customize print settings.
Now let’s go to the homepage. It provides commands to navigate through the
scheduler dates (for example, scroll the scheduler area backward, forward, go to the today date),
You can also switch the scheduler active view (for example, to Day, Work-Week,or some other
view.) And change the type of grouping appointments. Using the View tab items, you can also switch
between scheduler views and customize some settings for a particular view.
For example, let’s set the 15 Minutes scale for the Work-Week view and click the Working
Hours button to show the working hours only or the whole day in the view.
The Ribbon UI can also be used for creating, editing, and deleting appointments.
Back in the Home tab. Use its New Appointment and New Recurring Appointment buttons to create
simple or recurring appointments. Now let’s go back to the home tab and take
a look at our Appointment buttons. You can create either a one time appointment, or a
Recurring Appointment.
When an appointment is selected, you can use the Appointment tabbed page to invoke the
Edit Appointment dialog. Here we’ll change appointment status or
label, edit recurrence info, and delete appointments (either a single occurrence or entire series
of recurring appointments). You can also use our XtraProject Wizard for
WinForms to create a scheduling application that initially contains a comprehensive Ribbon
user interface required to work with a scheduler. We’ll do this by creating a New Project
and selecting our DXperience 12.1 Windows Forms Application Template.
In the wizard, make sure that the Command Area is Ribbon (by default). Then set the
Navigation Area to None, and the Client Area to Scheduler Control.
Select Simple scheduler control view style and click Create.
When we run the application, we’ll have a simple scheduler complete with a Ribbon
UI. You can see it immediately at design-time. Thanks for watching. Let’s see what develops.