radwindow & browser window - URGENT PLEASE HELP ME

3 posts, 0 answers
  1. Abdul Kadar
    Abdul Kadar avatar
    35 posts
    Member since:
    Oct 2008

    Posted 12 Sep 2009 Link to this post


    I need to set the browser window disable until the user click OK/Cancel button in the radwindow
    I saw the example , in TELERIK site,http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx
    As like in this example, when the user clicks the "Choose Destination & Date" button , a radwindow appears. I got the same effect in my radwindow sample application.In telerik example, when the user clicks the Choose City icon ,  another radwindow opens. At that time, the browser window is disabled. I need that effect in the browser window .please help me regarding this urgently.
    Thanks in Advance.

    telerik:RadWindowManager ID="RadWindowManager1" ReloadOnShow="true" runat="server" Skin="Outlook" Animation="Fade">






    <telerik:RadWindow ID="radwindow1" runat="server"
















    title = "New Contact" style="display:none;" Behavior="Default" InitialBehavior="None" Left="" Modal="true" Top="" VisibleStatusbar="true"></telerik:RadWindow>








  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 14 Sep 2009 Link to this post

    Hi Abdul Kadar,

    The Modal property controls whether the window appears as a modal dialog. Bu setting the Modal property to True, you could achieve the behavior of disabling the browser window when radwindow is opened.

    I am not quite sure about how you open the RadWindow. I tried the following code and it is working for me. Give a try with this:

    <telerik:RadWindowManager ID="RadWindowManager1" ReloadOnShow="true" runat="server" Skin="Outlook" Animation="Fade">  
            <telerik:RadWindow ID="radwindow1" runat="server" ShowContentDuringLoad="False" NavigateUrl="window1.aspx"  
                Title="New Contact" Style="display: none;" Behavior="Default" InitialBehavior="None"  
                Left=""  Modal="true" Top="" VisibleStatusbar="true">  
    <input id="Button1" type="button" value="button" onclick="openWindow();" /> 

    <script type="text/javascript"
    function openWindow() 
        var oWnd = radopen (null"radwindow1" ); 

  3. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 14 Sep 2009 Link to this post

    Hi Abdul,

    I see from your code that you have set the Modal property of the RadWindow and that is why if you open the correct RadWindow there should not be a problem in disabling the browser page while the RadWindow has been opened. That is why the only reason for the problem you describe which I can think of is that you have provided a wrong ID in the radopen function. Please, make sure that you have correctly spelled the ID of the particular RadWindow (note that the casing matters and you should keep it because javascript is case sensitive and radwindow1 and RadWindow1 are different objects).

    Another possible reason for the problem could be if you have two RadWindowManager controls on your page (e.g if you have one manager on a MasterPage and another one on the content page or in a user control). Please, verify this and remove one of them and use the other one instead.

    In case my assumptions and explanations do not help, please provide a fully runnable sample code along with detailed explanations of the exact desired behavior and I will do my best to help.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top