Ask a Question related to ASP.NET Building Controls, Design and Development.
-
apratimg@gmail.com #1
Nested Collection property in a custom control
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(DesignerSerializat ionVisibility.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
apratimg@gmail.com Guest
-
Collection Property in web custom control
Hi all, I'm building a custom control. I would like that on the control you can set some 'rights' For that I have an enum: public enum... -
Custom Control - Collection Property
Hey gang. I am taking the task of trying to learn how to write custom web controls. I have started with inheriting from the VS 2005 default which... -
Collection Property of Another Custom Server Control
Hi, I read more and figured out how to build what I needed: <cc> <item></item> <item></item> </cc> when <item> is an editable control in... -
Help with using a custom collection as a property for a TextBox derrived control.
Hi I am creating a new TextBox control but I am having problems when I am trying to add my own collection to the control and persisting the... -
Custom Control nad Collection property
I have a collection-property on my control. I Add the items through a collection editor, and items tags appears. <bugge:Control>... -
Gaurav Vaish \(www.EduJiniOnline.com\) #2
Re: Nested Collection property in a custom control
> in this control. But for this property its no able to save this values
Do you mean in the ViewState?> and gives me a blank control while rendering.
Ensure that COL_A_ITEM saves the state of COL_B_ITEM's in the collection
when it saves its view-state.
--
Happy Hacking,
Gaurav Vaish | [url]http://www.mastergaurav.com[/url]
[url]http://www.edujinionline.com[/url]
[url]http://articles.edujinionline.com/webservices[/url]
-------------------
Gaurav Vaish \(www.EduJiniOnline.com\) Guest



Reply With Quote

