Nested Collection property in a custom control

A

apratimg

I have the extactly the same problem.. I am creating a control where a
collection property is exposed which has a nested collection object.

It looks something like this once i enter data through the default
editor (in the design view)..

<COL_A>
<A1:COL_A_ITEM Name="Test" Index="1">
<COL_B>
<A1:COL_B_ITEM Visible="True"></A1:COL_B_ITEM>
<A1:COL_B_ITEM Visible="True"></A1:COL_B_ITEM>
</COL_B>
</A1:COL_A_ITEM>
</COL_A>

I have implemented IStateManager. It works fine for other items i have
in this control. But for this property its no able to save this values
and gives me a blank control while rendering.

I have applied ParseChildren and PersistChildren.. Also
DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
PersistenceMode(PersistenceMode.Attribute)

So i am totally clue less why it will not save as the serialization is
happeneing properly. Do i need to implement a typeconverter?

Thanks
Rahul
 

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,968
Messages
2,570,153
Members
46,701
Latest member
XavierQ83

Latest Threads

Top