I have tried to reproduce the problem you experience, but to no avail. Could you elaborate a bit more about the exact your scenario? I prepared a sample project, where you could observe the behavior of the RadTreeView control along with the usage of the get_allNodes()
Please find the sample attached.
All the best,
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed