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

BUG - Repeatable issue with RadTreeview/RadWindow

1 Answer 79 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Aaron Gibbs
Top achievements
Rank 2
Aaron Gibbs asked on 03 Jan 2013, 04:35 AM
Through very much trial and error I have discovered a repeatable issue/bug with the RadTreeView inside of a RadWindow.  This issue occurs in IE9 and the latest Chrome, I have not tried FireFox yet.

Version of Telerik.Web.UI is 2012.2.607.35

When placing a RadTreeView inside of a RadWindow's ContentTemplate, if any of the RadTreeNodes text property contains the character sequence "trial" the contents of the RadWindow are displayed at the bottom of the page.  After clicking the RadWindow's OpenerElement, the contents disappear from the bottom of the page and appear correctly inside the RadWindow.

Simply change any of the nodes text property to something that does not contain the word "trial" everything works properly.  I am including simple code blocks below that should reproduce the problem.  Note that there is a PopulateNodes() subroutine in the code-behind page; this issue occurs when adding nodes to the RadTreeView programmatically as well.

Please help with this very bizarre bug.  I am happy to provide any additional information you need to reproduce this problem.

aspx page:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="IndustrialBug.aspx.vb" Inherits="IndustrialBug" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="rsManager" runat="server"></telerik:RadScriptManager>
    <asp:LinkButton ID="cmdOpen" runat="server">Open Radwin</asp:LinkButton>
    <telerik:RadWindow ID="rwinSelectStores" runat="server" >
        <ContentTemplate>
            <telerik:RadTreeView ID="rtvStores" runat="server">
                <Nodes>
                    <telerik:RadTreeNode Text="Top node" Expanded="true">
                        <Nodes>
                            <telerik:RadTreeNode Text="Under the top node" Expanded="true">
                                <Nodes>
                                    <telerik:RadTreeNode Text="Node contains trial" Expanded="true"></telerik:RadTreeNode>
                                </Nodes>
                            </telerik:RadTreeNode>
                        </Nodes>
                    </telerik:RadTreeNode>
                </Nodes>
            </telerik:RadTreeView>
        </ContentTemplate>
    </telerik:RadWindow>
    </form>
</body>
</html>

code-behind:
Imports Telerik.Web.UI
 
Partial Class IndustrialBug
    Inherits System.Web.UI.Page
 
 
    Private Sub PopulateNodes()
        rtvStores.Nodes.Clear()
        Dim nTop As New RadTreeNode()
        Dim nSub1 As New RadTreeNode()
        Dim nBottom As New RadTreeNode()
 
 
        nTop.Text = "Top node here"
        nTop.Expanded = True
        nTop.Checked = False
        rtvStores.Nodes.Add(nTop)
 
        nSub1.Text = "Trial"
        nSub1.Expanded = True
        nSub1.Checked = False
        nTop.Nodes.Add(nSub1)
 
        nBottom.Text = "Bottom node"
        nBottom.Expanded = True
        nBottom.Checked = False
        nSub1.Nodes.Add(nBottom)
    End Sub
 
    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        rwinSelectStores.OpenerElementID = cmdOpen.ClientID
        'PopulateNodes()
    End Sub
End Class

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Jan 2013, 06:37 AM
Hi,

I was able to replicate the issue under the telerik version 2012.2.607.35. I tried to replicate the issue in the latest version but no avail. Please try updating to the latest version of telerik controls.

Hope this helps.

Regards,
Shinu.
Tags
TreeView
Asked by
Aaron Gibbs
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or