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
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