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

Open RAD Window - Object doesn't support property or method '_createDefaultTable'

3 Answers 91 Views
Window
This is a migrated thread and some comments may be shown as answers.
Alfred
Top achievements
Rank 1
Alfred asked on 04 Mar 2016, 05:19 AM

I open the RadWindow by the code.  Both OpenDownloadFile and OpenDownloadFile1 does not work.

The code is actually copied from my old code.  Now my version is 2015Q3.  Old code is working fine in old Telerik versions.

IE11 displays error: Object doesn't support property or method '_createDefaultTable'.

 

Regards

Alfred

 

 

 

01.<a href="javascript:void(0)" onclick="OpenDownloadFile();">Run JavaScript Code</a>
02. 
03.function OpenDownloadFile() {
04.     var wndManager = $find("<%=RadWindowManager1.ClientID%>");
05.     var oWnd = wndManager.open("Popup_DownloadFile.aspx", "RadWindow1");
06.     oWnd.center();
07. 
08.}
09. 
10.function OpenDownloadFile1() {
11.            var oWnd = radopen("Popup_DownloadFile.aspx?ID=" + FileID, null); // open radwindow        
12.            oWnd.set_title("Download File");
13.            oWnd.set_visibleStatusbar(false);
14.            oWnd.setSize(700, 1000);
15.            oWnd.moveTo(100, 50);
16.            window.scrollTo(100, 100)
17.             
18.        }

3 Answers, 1 is accepted

Sort by
0
Alfred
Top achievements
Rank 1
answered on 04 Mar 2016, 05:21 AM
Sorry.  The OpenDownloadFile1 has parameters inserted in actual code.  I just forgot to paste them here.
0
Accepted
Marin Bratanov
Telerik team
answered on 07 Mar 2016, 06:01 AM

Hello Alfred, 

Below is the code I used for testing and I am also attaching a short video that shows my experiement so you can confirm if I am missing something, because this snippet seems to work fine for me.

Can you reproduce the problem you are experiencing with it and point out any necessary modifications and also confirm the exact version you are upgrading from?

Also, could you try using the latest release (Q1 2016 SP1) and see whether this helps?

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" RenderMode="Lightweight"></telerik:RadWindowManager>
<a href = "javascript:void(0)" onclick = "OpenDownloadFile();" > Run JavaScript Code</a>
<br />
<a href = "javascript:void(0)" onclick = "OpenDownloadFile1('111');" > use second version</a>
<script>
 
    function OpenDownloadFile() {
        var wndManager = $find("<%=RadWindowManager1.ClientID%>");
     
        var oWnd = wndManager.open("Popup_DownloadFile.aspx", "RadWindow1");
     
        oWnd.center();
    }
     
    function OpenDownloadFile1(FileID) {
        var oWnd = radopen("Popup_DownloadFile.aspx?ID=" + FileID, null); // open radwindow       
     
        oWnd.set_title("Download File");
     
        oWnd.set_visibleStatusbar(false);
        oWnd.setSize(700, 1000);
        oWnd.moveTo(100, 50);
        window.scrollTo(100, 100)
    }              
</script>

Regards,

Marin Bratanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Alfred
Top achievements
Rank 1
answered on 07 Mar 2016, 01:17 PM

Dear Marin

 

Thanks.  It works now.  As I mentioned, the original code is "old" code using previous Rad Controls version.  I am converting it to use new version (2015 Q3). 

 

The root cause is: I have also another js file which is to handle the IE 11 odd behaviour with Rad Controls old version.  Actually the source of this js file is also from this forum. 

Thanks.

Alfred

 

 

Tags
Window
Asked by
Alfred
Top achievements
Rank 1
Answers by
Alfred
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or