collection editor problem
-
i had made one integer type collection editor in web control library project. the collection gets displayed properly at design time and i am able to add and remove items also but my problem is that value entered at design time does not effect the control at runtime. Regards, Ujjaval Modi.
-
i had made one integer type collection editor in web control library project. the collection gets displayed properly at design time and i am able to add and remove items also but my problem is that value entered at design time does not effect the control at runtime. Regards, Ujjaval Modi.
Ujjaval Modi wrote:
that value entered at design time does not effect the control at runtime.
I think you need to use some attributes to persist the collection data. After adding the items through collection editor, are you able to see it again when you click on the collection editor ? If yes there won't be any other problem.
-
Ujjaval Modi wrote:
that value entered at design time does not effect the control at runtime.
I think you need to use some attributes to persist the collection data. After adding the items through collection editor, are you able to see it again when you click on the collection editor ? If yes there won't be any other problem.
values persist in the collection but do not get reflected at runtime. my code for property is: List m_SectionValue = new List(new double[] { 100, 150, 200, 300}); [System.ComponentModel.Browsable(true), System.ComponentModel.Category("Funnel"), System.ComponentModel.Description("The Value of each Section.")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] [PersistenceMode(PersistenceMode.Attribute)] public List StandardValue { get { return m_SectionValue; } set { m_SectionValue = value; } }
-
values persist in the collection but do not get reflected at runtime. my code for property is: List m_SectionValue = new List(new double[] { 100, 150, 200, 300}); [System.ComponentModel.Browsable(true), System.ComponentModel.Category("Funnel"), System.ComponentModel.Description("The Value of each Section.")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] [PersistenceMode(PersistenceMode.Attribute)] public List StandardValue { get { return m_SectionValue; } set { m_SectionValue = value; } }
Ujjaval Modi wrote:
[PersistenceMode(PersistenceMode.Attribute)]
Try changing this to
PersistenceMode.InnerDefaultProperty
-
Ujjaval Modi wrote:
[PersistenceMode(PersistenceMode.Attribute)]
Try changing this to
PersistenceMode.InnerDefaultProperty
i tried every mode of [PersistenceMode] but its not working with this.