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

Rad window didnt load

2 Answers 90 Views
Window
This is a migrated thread and some comments may be shown as answers.
lakmal
Top achievements
Rank 2
lakmal asked on 15 Sep 2009, 03:49 PM
This is my radwindow. When i click button its not popup. where is the problem

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


<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="">
            <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Close" OnClientClose="OnClientClose"
                NavigateUrl="http://www.telerik.com">
            </telerik:RadWindow>
            <telerik:RadWindow ID="RadWindow2" runat="server" Width="650" Height="445" Modal="true" NavigateUrl="Dialog2.aspx">
            </telerik:RadWindow>
        </Windows>
        
        </telerik:RadWindowManager>
        
                <button runat="server" id="sad" onclick="openWin(); return false;">
            Choose Destination and date</button>           







2 Answers, 1 is accepted

Sort by
0
Casey
Top achievements
Rank 1
answered on 15 Sep 2009, 06:08 PM
Hi,

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

Hope this helps,
Casey
0
Svetlina Anati
Telerik team
answered on 16 Sep 2009, 09:43 AM
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,
Svetlina
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.
Tags
Window
Asked by
lakmal
Top achievements
Rank 2
Answers by
Casey
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or