hi,

i am using TreePanel with TreeStore and AjaxProxy like that:

<ext:TreePanel
                        
                        ID="StoresTreePanel"
                        Border="false"
                        RootVisible="false"
                        runat="server">
                        <Root>
                            <ext:Node NodeID="0" />
                        </Root>
                        <Store>
                            <ext:TreeStore runat="server">
                                <Proxy>
                                    <ext:AjaxProxy Url="TreeStoresLoader.ashx" />
                                </Proxy>
                            </ext:TreeStore>
                        </Store>
                        <DirectEvents>
                            <ItemClick OnEvent="GetPriceLists">
                                <ExtraParams>
                                    <ext:Parameter Name="Id" Value="record.id" Mode="Raw" />
                                </ExtraParams>
                            </ItemClick>
                        </DirectEvents>
                        <SelectionModel>
                            <ext:RowSelectionModel ID="TreePanelSelectionModel" runat="server" />
                        </SelectionModel>
                    </ext:TreePanel>
my ashx file create NodeCollection and then:
 context.Response.Write(nodes.ToJson());
 context.Response.End();

Also upon selecting node in the tree i set direct event to be called (ItemClick).

what i am trying now is to select the root Primary node in the first NodeCollection that is render
so that when the tree is show up the root will be selected automaticlly (including triggering the ItemClick event)

i hope that you understand my goal here.
i couldnt find any example that demonstarte this.