Displaying alerts/warnings in scheduler.

15 posts, 1 answers
  1. Alan
    Alan avatar
    107 posts
    Member since:
    Oct 2010

    Posted 01 Mar 2011 Link to this post

    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
  2. Answer
    Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 01 Mar 2011 Link to this post

    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!
  3. Alan
    Alan avatar
    107 posts
    Member since:
    Oct 2010

    Posted 01 Mar 2011 Link to this post

    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
  4. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 02 Mar 2011 Link to this post

    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!
  5. Alan
    Alan avatar
    107 posts
    Member since:
    Oct 2010

    Posted 02 Mar 2011 Link to this post

    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
  6. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 02 Mar 2011 Link to this post

    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!
  7. Alan
    Alan avatar
    107 posts
    Member since:
    Oct 2010

    Posted 02 Mar 2011 Link to this post

    Hi Veronica,

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

    Thanks,
    Daryl
  8. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 02 Mar 2011 Link to this post

    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!
  9. Alan
    Alan avatar
    107 posts
    Member since:
    Oct 2010

    Posted 03 Mar 2011 Link to this post

    No I don't think you are, can they be triggered server side?
  10. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 03 Mar 2011 Link to this post

    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!
  11. Alan
    Alan avatar
    107 posts
    Member since:
    Oct 2010

    Posted 10 Mar 2011 Link to this post

    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
  12. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 10 Mar 2011 Link to this post

    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!
  13. Alan
    Alan avatar
    107 posts
    Member since:
    Oct 2010

    Posted 10 Mar 2011 Link to this post

    Yes I noticed that, however the shadow is being applied to the whole page, not just the control.
  14. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 10 Mar 2011 Link to this post

    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!
  15. Alan
    Alan avatar
    107 posts
    Member since:
    Oct 2010

    Posted 10 Mar 2011 Link to this post

    No problem, thanks again!
Back to Top