May 18 2006

PopulateNodesFromClient Property in TreeView - ASP.NET 2.0

Category: ASP.NET 2.0 - GeneralBil@l @ 11:31

I have noticed today that, when you have PopulateOnDemand, and PopulateNodesFromClient both are true, then there is no way to access the Parent Node of the Current Node in your code!

I have been building a very complicated TreeView System in one of the projects working on, and I have really very complicated requirements for that Tree.

A workaround I came up with, whenever I see that the ParentNode is to be used by the children node, I add the Current Node Text and Value as the Value of the Children Node.

The key point, to let you know about this fact, and to help you find workarounds when you face such a need!

Hope this helps,

Regards

Tags:

Comments are closed