Hello,
I am trying to select a tree node after appending it from a controller. I append the node from the controller as follows...

var oChildNode = oControl.ToExtNetNode ( );

Ext.Net.TreePanel oTreePanel
	= Ext.Net.X.GetCmp<Ext.Net.TreePanel>
		( nsMyIdentify.IdMapEnum.DesignerTreePanelForProjectExplorer.ToString ( ) );

var oNode = oTreePanel.GetNodeById ( containerId );

oNode.AppendChild ( oChildNode );

oNode.Expand ( true );
I have tried to select the node both from the controller and from the client, but have not been able to do either.

In an attempt to select the node from the controller, i do the following...

var oSelectionModel
	= oTreePanel.GetSelectionModel ( );

if ( oSelectionModel != null )
{
	oSelectionModel.Select ( oChildNode.NodeID );
}	
else 
{
	var oTreeSelectionModel
		= new Ext.Net.TreeSelectionModel
		{
			Mode = Ext.Net.SelectionMode.Single,

			SelectedRecordID = oChildNode.NodeID 
		};

	oTreePanel.SelectionModel.Add
		( oTreeSelectionModel );
}
the TreePanel.GetSelectionModel() is always returning null and the remainder of the code does not select the newly appended node.

When i try from javascript, i add a listener for the "ItemAppend" function of the treepanel. The javascript function looks like this...

this.OnItemAppendDoSelectNode = function (sender, node, index, options)
{

        this.getSelectionModel().select(node.id);

        OR

        this.getSelectionModel().select(index);
}
I get the error message that the "select" is "undefined"

I have spent all day trying to get this working but have had not luck.