ShowDialog() - Really Modal?

2 posts, 1 answers
  1. Charles
    Charles avatar
    75 posts
    Member since:
    Aug 2008

    Posted 04 Feb 2009 Link to this post

    I am using a RadWindow and a custom UserControl so that I can retrieve a date parameter. I attempt to use it like a dialog box, so I use the ShowDialog() method to display it. I have some code that is supposed to run after the date parameter is retrieved from the RadWindow. Although the window is modal in that no other controls on the parent can be accessed, the code after the ShowDialog() call continues to run - it does not suspend until the dialog is closed. So, is that really modal behavior?

    I did find that I could have the window open as a dialog, retrieve parameters and store them within the user control as public properties and then access them later, after the window has been hidden. This is awkward, however, since I need two separate button clicks - one to open the RadWindow and gather the data, and another to use the gathered data and run the next step of the process.

    Perhaps I have missed some other properties I can use to enable this behavior. Any help would be appreciated.

  2. Answer
    Hristo Borisov
    Hristo Borisov avatar
    298 posts

    Posted 05 Feb 2009 Link to this post

    Hello Charles,

    You are using the control in the right way, the problem is that in Silverlight you can have only asynchronous calls, thus we are unable to stop the current UI thread while the RadWindow is running as it's in WPF or any windows forms application.

    All the best,
    Hristo Borisov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top