I know this is an old post, but I was just doing some of these updates myself (thanks for the help by the way), and thought I'd mention something:
If you're altering the TreeView control to perform such that an expand/collapse does not trigger postback, but selecting a node (clicking on the text) does, then you will need to change the code to this (as opposed to what R {Seb} posted): (Make sure to include the code in the RenderUpLevelPath method, and AFTER the check for "Expanded" (you need to reference the same object "b" from viewstate).
if ( (TreeNodeSrc != String.Empty) && (!Expanded && !(b != null && (bool)b == false)) )
output.AddAttribute("TreeNodeSrc",TreeNodeSrc);
This will only include the TreeNodeSrc attribute if the element is not expanded, but does have a treenodesrc.
Search the forum for a way to disable the postback on expand/collapse only.
Hope this helps!