Hello, jmcantrell!
Please look at the example.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Access TreeGrid nodes from DirectEvent.aspx.cs"
Inherits="Work.Premium_help.Access_TreeGrid_nodes_from_DirectEvent" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Button_Click(object sender, EventArgs args)
{
X.MessageBox.Alert("TheGrid.Root", TheGrid.Root.ToString()).Show();
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<ext:ResourceManager runat="server">
</ext:ResourceManager>
<ext:TreeGrid ID="TheGrid" runat="server">
<Columns>
<ext:TreeGridColumn Header="Column" Width="100">
</ext:TreeGridColumn>
</Columns>
<Root>
<ext:TreeNode>
</ext:TreeNode>
</Root>
</ext:TreeGrid>
<ext:Button runat="server" Text="Click to show the TheGrid.Root">
<DirectEvents>
<Click OnEvent="Button_Click" />
</DirectEvents>
</ext:Button>
</body>
</html>
Please note the Root is not empty in this example.
So, could you provide me with your example where the Root is empty.