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

model dialog not model

1 Answer 90 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 16 Apr 2009, 03:00 PM
I am using Silverlight navigation framework for my application.  I also make use of a nested frame within certain pages.  If I call RadWindow.Confirm from my root page or from a page that uses nested navigation it is not functioning as a model dialog, as the page from which it was called can be accessed and the page is not dimmed.  Any thoughts on how to get this to work?

Here is my code:

           private void OnSaveDialogOpened(Object sender, EventArgs e)  
            {  
                RadWindow confirm = sender as RadWindow;  
 
                //alert.DialogResult = true;  
                //alert.Close();  
            }  
 
            private void OnSaveDialogClosed(object sender, WindowClosedEventArgs e)  
            {  
                if (e.DialogResult == true)  
                {  
 
                    try 
                    {  
                        theEntityManager.SaveChangesAsync(  
                          args =>  
                          {  
                              if (args.IsCompleted)  
                              {  
                                  WriteMessage("Changes saved");  
                              }  
                              else 
                              {  
                                  WriteMessage(args.Error.Message);  
                              }  
                              //saveWindow.Close();  
                          },  
                          null);  
                    }  
                    catch 
                    {  
                        //saveWindow.Close();  
                        throw;  
                    }  
 
                }  
                else 
                {  
                    WriteMessage("Save cancelled");  
                }  
            }  
 
            private void Save2()  
            {  
 
                if (!theEntityManager.HasChanges())  
                {  
                    WriteMessage("No changes to save.");  
                    return;  
                }  
 
                WriteMessage("Saving ...");  
 
                RadWindow.Confirm(new DialogParameters  
                {  
                    Header = "Alert Message",  
                    Closed = new EventHandler<WindowClosedEventArgs>(OnSaveDialogClosed),  
                    Opened = new EventHandler(OnSaveDialogOpened),  
                    Content = "Save changes?",  
                    IconContent = "",  
                    OkButtonContent = "Yes",  
                    CancelButtonContent = "No" 
                });  
            } 

Thanks in advance for your help.
Jeff

1 Answer, 1 is accepted

Sort by
0
Hristo Borisov
Telerik team
answered on 17 Apr 2009, 07:42 AM
Hi Jeff,

Do you use our SP1 version of RadControls for Silverlight, which we introduced earlier this week? In our Q1 release, we had mistakenly introduced a bug that didn't allow our modal windows to show properly. If you still experience the same issue after you download the latest bits, please get back to us as soon as possible. I hope this will resolve your issue.

Best wishes,
Hristo Borisov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Jeff
Top achievements
Rank 1
Answers by
Hristo Borisov
Telerik team
Share this question
or