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

radAlert from a radWindow

3 Answers 188 Views
Window
This is a migrated thread and some comments may be shown as answers.
jorge
Top achievements
Rank 1
jorge asked on 08 Aug 2008, 07:11 PM
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?

3 Answers, 1 is accepted

Sort by
0
Sean
Top achievements
Rank 2
answered on 11 Aug 2008, 02:18 AM
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
0
jorge
Top achievements
Rank 1
answered on 11 Aug 2008, 12:44 PM
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
0
Georgi Tunev
Telerik team
answered on 11 Aug 2008, 02:25 PM
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.
Tags
Window
Asked by
jorge
Top achievements
Rank 1
Answers by
Sean
Top achievements
Rank 2
jorge
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or