Server Control Complex Properties

C

Chris McKenzie

I'm trying to develop my own TreeView control. I've used Microsoft's IE
WebControls package as a study point to illuminate the path I should to do
this. In the IE WebControls, the TreeView has its ParseChildren Attribute
set to False. This, I am given to understand, means that the control will
use the IParserAccessor.AddParsedSubObject method to add nodes to itself.
I've implemented similar logic in my own control with very different
results. When I check the type of object passed to AddParsedSubObject in my
control, I get a LiteralControl. When I check the same object in
Microsoft's Treeview, it's typed as a Treenode.

The PersistenceMode Attribute for the Nodes collection is set to
PersistenceMode.InnerDefaultProperty in both cases. What else could I be
missing that would explain the different behavior?



Thanks,

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top