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

this.get_tree() is null

3 Answers 55 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 24 Feb 2012, 11:02 PM
I have an existing site and Im starting to use telerik controls in the site but Im getting this javascript error.

this.get_tree() is null


Im using an existing ajaxControlToolkit.TabContainers. 
  1. On the first tab you click a button and it displays a third tab containing a RadFileExplorer 
  2. now you click on the first tab the 3rd tab goes away
  3. then click on the second tab and the javascript error occurs.


This is some sample code to reproduce it (VB.net 4.0)

Protected Sub tabContainer1_ActiveTabChanged(sender As Object, e As System.EventArgs)
    If (tabContainer1.ActiveTabIndex = 0 Or tabContainer1.ActiveTabIndex = 1) Then
        With tabContainer1.Tabs(2)
            .Enabled = False
            .Visible = False
        End With
    End If
End Sub
 
Protected Sub Page_Load(sender As Object, e As System.EventArgs)
    If Not IsPostBack Then
        With tabContainer1.Tabs(2)
            .Enabled = False
            .Visible = False
        End With
    End If
End Sub
 
Protected Sub OpenNewTab_Click(sender As Object, e As System.EventArgs)
    With tabContainer1.Tabs(2)
        .Enabled = True
        .Visible = True
    End With
    tabContainer1.ActiveTab = tabContainer1.Tabs(2)
End Sub


<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" ScriptMode="Release" AsyncPostBackTimeout="60000" runat="server">
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
    </Scripts>
</telerik:RadScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"></telerik:RadAjaxManager>
 <div>
     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <ajaxControlToolKit:TabContainer ID="tabContainer1"  runat="server"
                ActiveTabIndex="0" AutoPostBack="True"
                     onactivetabchanged="tabContainer1_ActiveTabChanged">
        <ajaxControlToolKit:TabPanel ID="Tab1" runat="server">
            <HeaderTemplate>
                One 
            </HeaderTemplate>
            <ContentTemplate>
            Randon <br />Stuff
            <br />Click here to start>><asp:Button runat="server" ID="OpenNewTab" Text="OpenNewTab"
                    onclick="OpenNewTab_Click" />
            </ContentTemplate>
        </ajaxControlToolKit:TabPanel>
        <ajaxControlToolKit:TabPanel ID="Tab2" runat="server">
            <HeaderTemplate>
                Two 
            </HeaderTemplate>
            <ContentTemplate>
            More Random Stuff<br /><br />11111111
            </ContentTemplate>
        </ajaxControlToolKit:TabPanel>
        <ajaxControlToolKit:TabPanel ID="Tab3" runat="server">
            <HeaderTemplate>
                Three 
            </HeaderTemplate>
            <ContentTemplate>
            problem here<br />
 
            <telerik:RadFileExplorer runat="server" ID="editArticleImagePathEditor" ></telerik:RadFileExplorer>
            </ContentTemplate>
        </ajaxControlToolKit:TabPanel>
    </ajaxControlToolKit:TabContainer>
 
        </ContentTemplate>
</asp:UpdatePanel>
 
</div>
</form>

3 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 27 Feb 2012, 10:39 AM
Hi Edmond,

I tried to reproduce the reported problem but to no avail. Could you please provide more detailed information on the specific scenario?
  • Which version of RadControls for ASP.NET AJAX, AjaxControlToolkit and .NET Framework are used in the application?
  • Under which browser and its version the problem occurs?

Also, I have prepared a video demonstrating my test, could you please see if I am doing something wrong?
http://screencast.com/t/OpYEe8MCR 

For my test, I used the latest version of RadControls for ASP.NET AJAX Q1 2012 and the latest version of AjaxControlToolkit 4.1.51116.

Regards,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Ed
Top achievements
Rank 1
answered on 27 Feb 2012, 02:41 PM
Thanks for the quick reply. Im using AjaxControlToolKit 4.1.50508.0,Telerik 2011.3.1305.40. I get the error in Chrome and IE9 and 
0
Dobromir
Telerik team
answered on 29 Feb 2012, 04:20 PM
Hi Edmond,

The provided screenshot does not say much about the JavaScript error. Also, the version of both suites are not latest. Could you please upgrade them and see if the problem still exists?

Kind regards,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
FileExplorer
Asked by
Ed
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Ed
Top achievements
Rank 1
Share this question
or