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

Displaying alerts/warnings in scheduler.

14 Answers 142 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 1
Alan asked on 01 Mar 2011, 03:12 PM
Hi,

I would like to display alerts/warnings in the scheduler pane as done by the control itself (such as the "Are you sure you want to delete this appointment?"). 

I want this so that after I validate the user's input I can display warnings, mostly server-side but some client side.

Thanks,
Daryl

14 Answers, 1 is accepted

Sort by
0
Accepted
Veronica
Telerik team
answered on 01 Mar 2011, 04:03 PM
Hello Daryl,

You can display alerts, promts and confirms by using RadWindowManager. Please take a look at this demo for an example. However could you please be more specific on that when do you want to display such alerts?

Greetings,
Veronica Milcheva
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Alan
Top achievements
Rank 1
answered on 01 Mar 2011, 04:09 PM
Thank you for your reply.

Basically I have two scenarios where a user cannot create an appointment. I'm using the drag/drop scenario but not saving immediately. So when the user drags the appointment, and hits save, it's saved, but I want to validate the Subject, if it's empty, it doesn't save, instead it displays a dialog box saying that it must not be left empty.

The second scenario is that I must not have two appointments in one timeslot, that's handled, but at the moment it's just not saved, without prompting the user, essentially the user doesn't know what's wrong with the action he just did.

Regards,
Daryl
0
Veronica
Telerik team
answered on 02 Mar 2011, 03:24 PM
Hi Daryl,

Please take a look at this KB article for validation of empty subjects.

As you will see in the KB article you can just type :

alert('Please insert a subject!');

in the JavaScript function and an alert window will appear with corresponding message.

Please let me know if this was helpful.

Kind regards,
Veronica Milcheva
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Alan
Top achievements
Rank 1
answered on 02 Mar 2011, 03:54 PM
Hi Veronica,

That's good, however I would like to use RadWindowManager instead, and display it inside the scheduler (exactly like the ones the scheduler triggers).

Thanks,
Daryl
0
Veronica
Telerik team
answered on 02 Mar 2011, 04:31 PM
Hi Daryl,

Could you please be more specific on what do you mean in "inside the scheduler (exactly like the ones the scheduler triggers)." Could you please send me a screenshot or show me an example in our demos?

Thank you!

Kind regards,
Veronica Milcheva
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Alan
Top achievements
Rank 1
answered on 02 Mar 2011, 04:47 PM
Hi Veronica,

Sorry if I'm not clear, I have attached the requested image.

Thanks,
Daryl
0
Veronica
Telerik team
answered on 02 Mar 2011, 05:16 PM
Hello Daryl,

Thank you for the attached image.
As I mentioned below the alerts of the RadScheduler are alerts of RadWindowManager.
Could you please tell me am I missing something in your requirement?

Kind regards,
Veronica Milcheva
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Alan
Top achievements
Rank 1
answered on 03 Mar 2011, 10:03 AM
No I don't think you are, can they be triggered server side?
0
Veronica
Telerik team
answered on 03 Mar 2011, 03:25 PM
Hi Daryl,

Yes, they can be triggered from server-side. Please take a look at this KB article for an example.

All the best,
Veronica Milcheva
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Alan
Top achievements
Rank 1
answered on 10 Mar 2011, 11:37 AM
Hi Veronica,

Thank you for your help.

One last thing, and I'm not sure this is possible to do, so if it's not don't worry.

You know how radalerts in scheduler create a shadow on just the scheduler, is it possible to do that in my case? (from the page)

Thanks,
Daryl
0
Veronica
Telerik team
answered on 10 Mar 2011, 12:37 PM
Hello Daryl,

Yes, the shadows comes from that the thrown alert / prompt / etc. are modal windows. Yes, by just using our radalert / radprompt etc. the shadow will appear on the scheduler.

Best wishes,
Veronica Milcheva
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Alan
Top achievements
Rank 1
answered on 10 Mar 2011, 12:39 PM
Yes I noticed that, however the shadow is being applied to the whole page, not just the control.
0
Veronica
Telerik team
answered on 10 Mar 2011, 02:45 PM
Hello Daryl,

No, unfortunately there is no easy way to apply the shadow only over the RadScheduler control.

Greetings,
Veronica Milcheva
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Alan
Top achievements
Rank 1
answered on 10 Mar 2011, 02:48 PM
No problem, thanks again!
Tags
Scheduler
Asked by
Alan
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Alan
Top achievements
Rank 1
Share this question
or