[CLOSED] Cannot read property "childNodes" of undefined

  1. #1

    [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]
  2. #2
    Hi,

    TreeGrid doesn't support RootVisible="true".
  3. #3
    guess that solves that problem then, eh? lol..

    So I suppose the proper way to do this would be to use a droptarget with a target for the treegrid and then fire off the handling of the drop there? sounds right to me.. I'm just going from a populated treegrid to an unpopulated tree grid.
  4. #4
    Just place into Root an additional node which will do "Root role".
  5. #5
    Actually, I initially didn't want a node to display.. showing one was just a work around. You can close this one and as always, thanks for your time :D

Similar Threads

  1. Replies: 1
    Last Post: Jun 26, 2012, 11:29 AM
  2. [CLOSED] GridPanel / Renderer : Property "undefined"?
    By wagger in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 03, 2011, 8:50 PM
  3. Replies: 4
    Last Post: Apr 29, 2011, 6:49 PM
  4. Replies: 9
    Last Post: Apr 25, 2011, 8:23 PM
  5. Replies: 14
    Last Post: Apr 12, 2011, 2:49 PM

Tags for this Thread

Posting Permissions