How to close radwindow in a certain time?

2 posts, 1 answers
  1. CTO
    CTO avatar
    5 posts
    Member since:
    Jan 2015

    Posted 31 Aug 2016 Link to this post

    I want to create a radwindow dialog which have a button for close the window and also after 5 sec the window close automatically.

    Thanks in advance.

  2. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3627 posts

    Posted 31 Aug 2016 Link to this post

    Hello,

    You can start a timer (see the setTimeout() function) in the OnClientShow event to call the close() method of the RadWindow.

    If you intend to only show a small information box, you may want to use RadNotification and its AutoCloseDelay property. You can play around with its behavior in its Configurator demo.

    Regards,

    Marin Bratanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top