handling reservations in Scheduler

3 posts, 0 answers
  1. Mohan
    Mohan avatar
    22 posts
    Member since:
    Apr 2009

    Posted 23 Mar 2010 Link to this post

    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. Mohan
    Mohan avatar
    22 posts
    Member since:
    Apr 2009

    Posted 24 Mar 2010 Link to this post

    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
  3. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    353 posts

    Posted 26 Mar 2010 Link to this post

    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.
Back to Top