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

I wonder if it is not available in Rad Scheduler

6 Answers 84 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Hai
Top achievements
Rank 1
Hai asked on 26 Mar 2011, 12:36 AM
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

6 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 26 Mar 2011, 08:58 AM
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
0
Hai
Top achievements
Rank 1
answered on 26 Mar 2011, 05:57 PM
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
0
Veronica
Telerik team
answered on 28 Mar 2011, 11:59 AM
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
0
Hai
Top achievements
Rank 1
answered on 30 Mar 2011, 06:15 AM
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
0
Shinu
Top achievements
Rank 2
answered on 30 Mar 2011, 08:37 AM
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.
0
Hai
Top achievements
Rank 1
answered on 30 Mar 2011, 03:59 PM
Thanks Shinu,
I call the Rad Window from VB. I wonder if it may cause the scroll bar to disappear?

Hai Tran
Tags
Scheduler
Asked by
Hai
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Hai
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or