This is a migrated thread and some comments may be shown as answers.

handling reservations in Scheduler

2 Answers 56 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Mohan
Top achievements
Rank 1
Mohan asked on 23 Mar 2010, 10:09 PM
Hi,

I am in the process of upgrading an exisiting winforms  application that manages room reservations.

Currently we are just showing the reservations in a grid. I am planning to use the RadScheduler to show the reservations.

I already have a Reservation Class as follows.
public class Reservation 
   public int ReservationId { getset; } 
   public DateTime RequestDate { getset; } 
   public string RequestedByName { getset; } 
   public DateTime StartDate { getset; } 
   public DateTime EndDate { getset; } 
   public string Comments { getset; } 
   public int RoomId { getset; } 

How do I go about using the above class to populate the scheduler. The only thing I can think of is to map the above class to the Appointment class for populating the scheduler.  Is there an easier way?

My other question is how do I go about using the Reservation Form that I have already created instead of the Appointment Dialog that the scheduler displays by default when the user wants to edit / create reservations.


thanks



2 Answers, 1 is accepted

Sort by
0
Mohan
Top achievements
Rank 1
answered on 25 Mar 2010, 02:17 AM
Hi,

I was able to populate the reservation data in the scheduler but am having trouble with grouping by resource. Is there an example that shows how to achieve it using business objects something along the lines of using List for resources. Most of the examples are directly connecting to database.

I mainly need help with the Resource grouping. I looked through the Using a Data Provider section in the documentation. It doesn't cover resource grouping.

thanks
0
Dobry Zranchev
Telerik team
answered on 26 Mar 2010, 08:27 PM
Hello Mohan,

Thank you for contacting us.

The easiest way is to inherit the Appointment class and add your additional fields. In order to reuse your dialog you could implement the IEditAppointmentDialog interface.

The examples demonstrate how to map resources, and they will probably help you with this task.

If you have additional questions feel free to ask.

Greetings,
Dobry Zranchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Scheduler and Reminder
Asked by
Mohan
Top achievements
Rank 1
Answers by
Mohan
Top achievements
Rank 1
Dobry Zranchev
Telerik team
Share this question
or