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

ShowDialog() - Really Modal?

1 Answer 138 Views
Window
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 2
Charles asked on 04 Feb 2009, 04:01 PM
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.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Hristo Borisov
Telerik team
answered on 05 Feb 2009, 01:27 PM
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.
Tags
Window
Asked by
Charles
Top achievements
Rank 2
Answers by
Hristo Borisov
Telerik team
Share this question
or