Jun 02, 2011, 4:33 PM
[CLOSED] Cannot read property "childNodes" of undefined
Having an issue with the tree grid when setting root visible to true. I initially came across this when I realized that I couldn't drag to the "panel" of the treegrid so I decided to show a root and this error was thrown.
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Index</title>
</head>
<body>
<div>
<ext:ResourceManager ID="ResourceManager1" runat="server" ScriptMode="Debug" InitScriptMode="Inline" />
<ext:TreeGrid ID="TreeGrid1" runat="server"
RootVisible="true" Border="false" Title="Form Designer">
<Columns>
<ext:TreeGridColumn Header="Questions" Width="130" DataIndex="h1" />
<ext:TreeGridColumn Header="Details" Width="150" DataIndex="h2" />
</Columns>
<Root>
<ext:TreeNode NodeID="0" Text="root" Icon="Accept">
<CustomAttributes>
<ext:ConfigItem Name="h1" Value="test h1" Mode="Value" />
<ext:ConfigItem Name="h2" Value="test h2" Mode="Value" />
</CustomAttributes>
</ext:TreeNode>
</Root>
</ext:TreeGrid>
</div>
</body>
</html>
Last edited by Daniil; Jun 02, 2011 at 6:08 PM.
Reason: [CLOSED]