Hi,
I just tried to populate the RadTreeView control dynamically from code behind using a custom user control added to each Node item and I am curious with the non-persistence state of the Node item data during the Page PostBack. My Node item seems to keep missing from the TreeView everytime the Page is posting back.
For background information, I did not use the DataBinding method and had to manually added the Node item into the TreeView as the database structure that I had does not have the parent-child relationship defined in one table, instead I have to go to three different database tables to link them together in order to get the parent-child relationship for building the TreeView.
I've set the EnableViewState properties of both the RadTreeView and every node item contained in that TreeView but the node item still keep missing. I can repopulate the node item in the TreeView every PostBack event to keep the Node item there, but that means I will loose the event information especially the Drag-N-Drop event.
The situation does not happen if I don't use the custom user control, but I will need the custom control as the standard Node item style does not suit my needs.
Is there anything that you can suggest to me to solve this issue?
Regards
I just tried to populate the RadTreeView control dynamically from code behind using a custom user control added to each Node item and I am curious with the non-persistence state of the Node item data during the Page PostBack. My Node item seems to keep missing from the TreeView everytime the Page is posting back.
For background information, I did not use the DataBinding method and had to manually added the Node item into the TreeView as the database structure that I had does not have the parent-child relationship defined in one table, instead I have to go to three different database tables to link them together in order to get the parent-child relationship for building the TreeView.
I've set the EnableViewState properties of both the RadTreeView and every node item contained in that TreeView but the node item still keep missing. I can repopulate the node item in the TreeView every PostBack event to keep the Node item there, but that means I will loose the event information especially the Drag-N-Drop event.
The situation does not happen if I don't use the custom user control, but I will need the custom control as the standard Node item style does not suit my needs.
Is there anything that you can suggest to me to solve this issue?
Regards