Rad window didnt load

3 posts, 0 answers
  1. lakmal
    lakmal avatar
    76 posts
    Member since:
    Jun 2009

    Posted 15 Sep 2009 Link to this post

    This is my radwindow. When i click button its not popup. where is the problem

     <script type="text/javascript">
            function openWin()
                var oWnd = radopen("http://www.telerik.com", "RadWindow1");

    <telerik:RadWindowManager OnClientClose="OnClientClose" OnClientPageLoad="OnClientPageLoad"
                OnClientResize="SetWindowBehavior" OnClientShow="SetWindowBehavior" Behaviors="Resize, Close, Maximize, Move"
                ID="RadWindowManager" DestroyOnClose="True" RestrictionZoneID="RestrictionZone"
                runat="server" Behavior="Resize, Close, Maximize, Move"
            InitialBehavior="None" Left="" style="display: none;" Top="">
                <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Close" OnClientClose="OnClientClose"
                <telerik:RadWindow ID="RadWindow2" runat="server" Width="650" Height="445" Modal="true" NavigateUrl="Dialog2.aspx">
                    <button runat="server" id="sad" onclick="openWin(); return false;">
                Choose Destination and date</button>           

  2. Casey
    Casey avatar
    299 posts
    Member since:
    Jul 2009

    Posted 15 Sep 2009 Link to this post


    Try using the "OnClientClick" event of the button instead of the "onclick" event.

    Hope this helps,
  3. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 16 Sep 2009 Link to this post

    Hi lakmal,

    I examined your code and it seems to be correct and after I removed the handlers you have attached because you did not provide their code and ran the page, the RdaWindow was correctly displayed and loaded. That is why I assume that you probably get a js error in one of the handlers which are executed first, e.g in the OnClientShow handler if the RadWindow does not show at all or in the OnClientPageLoad handler if the RdaWindow opens but does not load the page. Please, examine teh handlers and in case you need further asssitance, provide a sample page code which is fully runnable and reproduces the issue and also describe the exact actual behavior you get. Once I receive this information, I will get a better understanding on teh problem and I will do my best to help. 

    Kind regards,
    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