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

[Solved] Interactive Dialog in RadScheduler

1 Answer 125 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
antonio
Top achievements
Rank 1
antonio asked on 17 Jun 2008, 06:29 PM
Hello,

I wonder if this is possible with RadScheduler:

When an appointment is inserted or updated, and the appointment overlaps another, I would like to display a confirmation dialog to either continue with the save operation (Insert or Update) or to abort it.

I was wondering if anybody has implemented something like that.  I pressume that the ModalPopupExtender would be the preferred tool?

Any help would be appreciated.

Thanks.

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 19 Jun 2008, 12:59 PM
Hi,

In fact we have an online example that is very similar to your scenario. Please, take a look at it here:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Scheduler/Examples/LimitConcurrentClientSide/DefaultCS.aspx

The example does not display a confirmation, but instead cancels the action directly when the appointments are overlapping. A very basic change will be to replace set_cancel(true) with:

var confirmation = confirm("Are you sure you wish to continue?");
set_cancel(!confirmation);

Using something like the ModalPopupExtender or RadConfirm might not be very straightforward. The problem is that you cannot block the executing thread while the user confirms the action. You will eventually have to cancel the event and then re-initiate it based on the user response. This is a problem in itself, as RadScheduler still lacks client-side methods to initiate insert/edit or update operations. We are planning to implement them, but until these are ready you will have to rely on something like the AjaxRequest method of RadAjaxManager.

Greetings,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
antonio
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or