Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Window > Closing alerts with the escape key

Not answered Closing alerts with the escape key

Feed from this thread
  • Geert avatar

    Posted on Nov 10, 2011 (permalink)

    We are using the RadWindow.Alert() method to show messages to the user. This works great, except that the window does not following the windows behavior. For example, when I have a message box with 2 choices (OK/Cancel), I can close it with the escape key (results in cancel). However, if I only show the OK button, I must either press enter or click OK, but escape doesn't work (in Windows, it does close the message box).

    I took a look at the code in reflection, and the actual window is created inside of the ConfigureModal method, but I cannot get to the instance to manually subscribe the escape key to close the window. So, what's the easiest way to allow users to close the message box in OK state with the escape key?

    Thanks in advance!

    Reply

  • Rob avatar

    Posted on Nov 28, 2011 (permalink)

    I'm getting complaints from users about the same issue, this is really bad UX practice. Please fix.

    Reply

  • Boyan Boyan admin's avatar

    Posted on Dec 1, 2011 (permalink)

    Hi guys,

    We agree that this behavior is not so user friendly. Currently pressing Escape is linked to the Cancel button in the template of the control and that is why it is not working for Alert window. I have entered your request in our PITS, you can follow its progress and vote for it here.

    As a workaround you can edit the template of the Alert window and add the functionality. I have attached a sample project where I have added a dummy cancel button with Visibility=Collapsed that handles the Escape key so the RadAlert is closing. Hope this suits your scenario.

    Let me know if you have further questions.

    Best wishes,
    Boyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Attached files

    Reply

  • Rob avatar

    Posted on Dec 1, 2011 (permalink)

    Thanks for adding this to PITS and listening to your customers. That is good practice ;)

    Kind regards,
    Rob Houweling

    Reply

  • Boyan Boyan admin's avatar

    Posted on Dec 13, 2011 (permalink)

    Hi Guys,

    This feature was implemented and will be available in the next internal build and in the Service pack. Thank you for tour patience.

    All the best,
    Boyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Window > Closing alerts with the escape key
Related resources for "Closing alerts with the escape key"

Silverlight Window Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]