I have a RadTreeView in which i am dynamically adding nodes from classes that are inherited from RadTreeNode. Each class defines few different text fields, as well as a NodeTemplate (each class uses its own node template).
Everything seems to render fine, until a postback is fired. It seems that as soon as the page posts back, all my NodeTemplates become null. I have tried explicitly setting EnableViewState=true on my RadTreeView and all my nodes, and basically every object i am using.
Also depending on the number of child nodes I add (i haven't found a specific pattern to this), the page sometimes doesn't even postback at all, but just gives me ViewState Errors. In this situation if i remove the line where i define my NodeTemplate in each class, the error goes away. It all seems to boil down to my node templates not persisting on postback.
The problem seems to be similar to this: http://www.telerik.com/community/forums/aspnet/treeview/radtreeview-nodetemplate-navigateurl.aspx
, but i am not using NavigateUrl. The only base properties that i am setting are Text, Value, NodeTemplate and EnableViewState.
I downloaded the latest trial version last week (DLL version 2010.1.415.35)