what do you mean "hiding", nodes cannot be invisible.
Also, there's no built-in feature to save treeview state somewhere. So if want it, then you need to implement your custom function to recursively save nodes (serialize) and deserialize back when needed.