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

Modal window doesn't disable other controls

1 Answer 130 Views
Window
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 22 Oct 2007, 07:50 PM
For some reason when using the RadWindow for Prometheus, it doesn't lock down the rest of the screen when I set the window to Modal. It will keep me from being able to move the window, but that's about it.
Here is the javascript we're using to pop the window. The behavior is Close, modal is true.
if (behavior == 'Close')  
        {  
            oWindow = $find("ctl00_WdwClose");  
        }  
        else if (behavior == 'ClosePostBack')  
        {  
            oWindow = $find("ctl00_WdwClosePostBack");  
        }  
          
        oWindow.show();  
        oWindow.setUrl(URL);  
              
        oWindow.setSize(width, height);  
              
        if (modal)  
            oWindow.set_Modal(modal);  
        else 
            oWindow.moveTo(x, y);  
              
        if (title != '')  
            oWindow.set_Title(title); 
The code for the RadWindow looks like this:
<telerik:RadWindow ReloadOnShow=true ID="WdwClose" Animation=Fade VisibleStatusbar=false Skin="Vista" Behavior="Close" Top="" NavigateUrl="" Left="" runat="server" Behaviors="Close" IntialBehavior="None"></telerik:RadWindow> 
I just tried converting from using the Standard Q4 2006 to the Q2 2007 Prometheus controls for this.

By the way, the only way it will show Modal, is if I use the Fade animation. Other setups I've tried either don't size the window correctly, or don't gray out the rest of the screen so a user can't go clicking around. Is there a workaround or did I accidentally set something up wrong in my conversion? Not sure, but I saw a hotfix out there to download, but didn't download it because I figured it was probably in the download I got of the Prometheus controls today as well.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 24 Oct 2007, 03:34 PM
Hello Adam,

RadWindow that has already been shown, cannot be set to modal.
You need to call the set_Modal() method before showing the RadWindow or alternatively to first hide the window, set it to modal and then to show it again.

If you still experience problems, please open a new support ticket and send us a working project where the problems can be reproduced. We will check them and get back to you with solution.



Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Adam
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or