model dialog not model

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    22 posts
    Member since:
    Nov 2008

    Posted 16 Apr 2009 Link to this post

    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
  2. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 17 Apr 2009 Link to this post

    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.
  3. DevCraft banner
Back to Top