I wonder if it is not available in Rad Scheduler

7 posts, 0 answers
  1. Hai
    Hai avatar
    18 posts
    Member since:
    Nov 2010

    Posted 25 Mar 2011 Link to this post

    Hi,
    I wonder if RadScheduler has this following feature. When a user select a day in the past, Radscheduler will not allow him to insert an appointment. Besides, if he adds a new appointment, it is incorrect if he selects a start date and an end date in the past.

    Kind regards,
    Hai Tran
  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 26 Mar 2011 Link to this post

    Hi Hai,

    By default there is no limitation for the start time of appointments. You can insert/edit appointments in the past or in the future but you need to ensure that the Start Time is less than the End Time.

    Your requirement can still be achieved by some customization. You can subscribe to the OnClientAppointmentInserting client-side event and use the following code in the handler:

    function OnClientAppointmentInserting(sender, args) {
                var currentTime = new Date();
      
                if (args.get_startTime() < currentTime) {
                    alert("start time can not be in the past");
                    args.set_cancel(true);
                }
            }

    Hope this helps.

    Regards,
    Veronica Milcheva
    the Telerik team
  3. Hai
    Hai avatar
    18 posts
    Member since:
    Nov 2010

    Posted 26 Mar 2011 Link to this post

    Thank you so much for your solution.
    Currently in our project, each customer may or may not have a proposal. What we are gonna do is to add a button in each appointment to a customer. Whenever this appointment has a proposal, this button will be enable to allow user view the proposal. If not, this button will be disable.
    Is there anyway I can do this and add a link to this button to show the proposal?

    King regards,
    Hai Tran
  4. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 28 Mar 2011 Link to this post

    Hello Hai,

    You can add the button to each appointment via AppointmentTemplate. Please take a look at this demo for sample of appointment with template. Also please take a look at this forum post for how to enable / disable the button in the appointment according to some conditions.

    Feel free to ask me if you have further questions.

    Regards,
    Veronica Milcheva
    the Telerik team
  5. Hai
    Hai avatar
    18 posts
    Member since:
    Nov 2010

    Posted 30 Mar 2011 Link to this post

    Hi,
    I now can add a button to open a Rad Window. But the Rad Window size does not allow the proposal to be displayed completely.
    Is there anyway we can enable vertical and horizontal scroll bars for a Rad Window?

    Kind regards,
    Hai Tran
  6. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Mar 2011 Link to this post

    Hello Hai,

    By Default the RadWindow shows the ScrollBars when its content  does not fit to its area.

    If you don't need a fixed size window one option is to set the AutoSize property to True which cause the window to automatically resize itself according to its content.

    Thanks,
    Shinu.
  7. Hai
    Hai avatar
    18 posts
    Member since:
    Nov 2010

    Posted 30 Mar 2011 Link to this post

    Thanks Shinu,
    I call the Rad Window from VB. I wonder if it may cause the scroll bar to disappear?

    Hai Tran
Back to Top