radAlert from a radWindow

4 posts, 0 answers
  1. jorge
    jorge avatar
    23 posts
    Member since:
    Apr 2007

    Posted 08 Aug 2008 Link to this post

    Using a radalert from a radwindow and the radalert is not modal and shows behind the radwindow.  You have to move the radwindow to be able to see the radalert and you can close the radwindow while the radalert reminds open.


    RadWindoManager definition
        <telerik:RadWindowManager   
                    id="Singleton"   
                    runat="server" 
                    Skin="Web20" 
                    Behaviors="Move, Close" 
                    DestroyOnClose="true" 
                    Modal="true" 
                    VisibleStatusbar="false">  
        </telerik:RadWindowManager> 
     


    Code that opens the radwindow
            function showReportSelector()  
            {                      
                //Force reload in order to guarantee that the onload event handler of the dialog which configures it executes on every show.  
                var oWnd = window.radopen("reportsDialog.aspx""ReportSelector");  
                oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close );  
                oWnd.add_close(onReportSelected);  
                oWnd.set_modal(true);  
                oWnd.setSize(470,190);  
            }  
     

    Code that opens the radalert
            function OK_Clicked()  
            {  
                var oWindow = GetRadWindow();  
                var selectedIndex = document.getElementById("lstReports").selectedIndex;  
                if (selectedIndex == -1)  
                {  
                    oWindow.BrowserWindow.radalert("Please select a report", 200, 100, 'Warning');  
                    return false;  
                }  
                  
                var selectedReportID = document.getElementById("lstReports").options[selectedIndex].value;  
                oWindow.argument = selectedReportID;  
                oWindow.close();  
            }  
     

    What am I missing?
  2. Sean
    Sean  avatar
    54 posts
    Member since:
    Apr 2008

    Posted 10 Aug 2008 Link to this post

    The problem looks like your RadWindow is set to Modal. I think that overrides everything. Have you tried setting the window to NOT modal? Or setting the radalert to be modal?

    Sean
    Electronic Arts, Orlando FL
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. jorge
    jorge avatar
    23 posts
    Member since:
    Apr 2007

    Posted 11 Aug 2008 Link to this post

    No, have not tried that, but I need the window to be modal.  The radalert should be modal by design, just like the regular alert.

    Jorge
  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 11 Aug 2008 Link to this post

    Hello Jorge,

    I tried to reproduce the problem with your code and RadWindow 2008.2.723.20 (Q2 2008) but everything worked as expected. Can you please make sure that you are using a recent version of the control and if you still experience problems - to send us a small sample project in a support ticket? Just make sure that the project can be run locally and attach it to the ticket - we will check it right away.



    Greetings,
    Georgi Tunev
    the Telerik team

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