Search code examples
internet-explorertelerikradwindow

Telerik RadWindow - I cannot get the Modal option to work, what could cause this?


We are upgrading to version 4.0 of the telerik controls and for some reason the RadWindow Modal option does not work (ie of course).

We have all of our windows defined in our masterpage and we open them by executing javascript on a button click in a user control.

<radW:RadWindowManager ID="RadWindowManager1" runat="server" Behavior="none" Skin="Outlook" Modal="true"
        VisibleStatusbar="False" VisibleTitlebar="false">
    <Windows>
        <radW:RadWindow ID="Help" runat="server" Title="Help" Height="600" Width="975" ReloadOnShow="True"
            Modal="True" OnClientClose="InvolvementCallBackFunction" OnClientShow="OnClientShow" OnClientPageLoad="OnClientPageLoad" ShowContentDuringLoad="false" />
    </Windows>
</radW:RadWindowManager>

Js

function ShowPopupForm(location, formName, returnValue) {
    var oManager = GetRadWindowManager();
    var oWnd = oManager.getWindowByName(formName);
    oWnd.set_modal(true);
    oWnd.setUrl(location);
    oWnd.show();
    return returnValue;
}

After the button is clicked the window displays, however it is not modal!

Oddly enough I can get this to work if everything is in the same page and I use the OpenerElementID attribute.

Any ideas?


Solution

  • Ok I got it!

    Telerik does not like it if you have a self closing div tag in your html page. (In ie anyways)

    BAD

    <div />
    

    GOOD

    <div></div>