Predefined timeslots

7 posts, 0 answers
  1. Johnny
    Johnny avatar
    16 posts
    Member since:
    Mar 2009

    Posted 08 Sep 2010 Link to this post

    Hi,

    Is it possible to have predefined timeslots? For example that all mondays should be divided into bookable timeslots, 8:00 to 11:00, 11:00 to 14:00, 14:00 to 17:00 and so on. All tuesday´s could have a completly different setup and so on.

    Possible with templates or something?

    //Johnny
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 08 Sep 2010 Link to this post

    Hello Johny,


    The demo shows how to cancel the insert or update of an appointment server-side if it will create a time confict with another appointment.
    Occupied Timeslots

    I believe, same concept you can use for your requirement.


    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Johnny
    Johnny avatar
    16 posts
    Member since:
    Mar 2009

    Posted 08 Sep 2010 Link to this post

    Hello Shinu,

    Thanks for the response. Yes that would be about half of what i´m trying to do. I want also to set the available timeslots, via templates or xml etc, that users can book. The timeslots that I have predefined is the only available timeslots for the users. For example:
    Monday
    08:00-11:00 available for users to book
    11:00-12:00 Lunch, not available to book
    12:00-15:00 available for users to book
    Tuesday
    06:00-08:00 available for users to book
    08:00-09:00 not available to book
    09:00-11:00 available for users to book
    11:00-12:00 Lunch, not available to book
    12:00-15:00 available for users to book
    Wednesday
    ........
    ....
    So ideal for me would be that every monday had the same defined timeslot and every tuesday had the defined timelots and so on.

    Thanks
    //Johnny
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 11 Sep 2010 Link to this post

    Hello Johnny,

    Please, see the kb article on Setting special days or time slots in RadScheduler. I hope it helps.


    Kind regards,
    Peter
    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
  6. Johnny
    Johnny avatar
    16 posts
    Member since:
    Mar 2009

    Posted 14 Sep 2010 Link to this post

    Hello Peter,

    Yeah that is close of what I´m trying to achive. Perhaps I should explain what i´m hoping to do. Basically it´s a module for a sitefinity website that allows the admin to configure a scheduler with timeslots that are bookable. I`m wondering if their is a way to set that for example all mondays have 4 timeslots that are available for the users to book. That so the admin would not have to configure all 365 days of the year, but instead configure that all thursdays should have these timeslots, every friday should have these timeslots and so on.

    I was hoping to have a neat little visual aid for the admin to define a weeks schedule and that week schedule would be applied for every week ahead until the admin changes the schedule. is this making sense at all?

    Thanks

    Johnny
  7. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 16 Sep 2010 Link to this post

    Hello Johnny,

    You can still use the same approach from the kb article. For example, suppose you want to block the time from 3pm till 5pm on every Thursday, then you can use the following code:
    protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
       {
           if (e.TimeSlot.Start.DayOfWeek == DayOfWeek.Thursday & 14 < e.TimeSlot.Start.Hour & e.TimeSlot.Start.Hour < 17)
           {
               e.TimeSlot.CssClass = "Disabled";
           }
       }


    Greetings,
    Peter
    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
  8. Johnny
    Johnny avatar
    16 posts
    Member since:
    Mar 2009

    Posted 17 Sep 2010 Link to this post

    Thanks Peter,

    I´ll experiment a little and see how I can make use of it.

    /Johnny
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017