Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. collection editor problem

collection editor problem

Scheduled Pinned Locked Moved ASP.NET
designhelp
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    Ujjaval Modi
    wrote on last edited by
    #1

    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.

    N 1 Reply Last reply
    0
    • U 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.

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      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.


      My Website | Ask smart questions

      U 1 Reply Last reply
      0
      • N N a v a n e e t h

        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.


        My Website | Ask smart questions

        U Offline
        U Offline
        Ujjaval Modi
        wrote on last edited by
        #3

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

        N 1 Reply Last reply
        0
        • U Ujjaval Modi

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

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Ujjaval Modi wrote:

          [PersistenceMode(PersistenceMode.Attribute)]

          Try changing this to

          PersistenceMode.InnerDefaultProperty


          My Website | Ask smart questions

          U 1 Reply Last reply
          0
          • N N a v a n e e t h

            Ujjaval Modi wrote:

            [PersistenceMode(PersistenceMode.Attribute)]

            Try changing this to

            PersistenceMode.InnerDefaultProperty


            My Website | Ask smart questions

            U Offline
            U Offline
            Ujjaval Modi
            wrote on last edited by
            #5

            i tried every mode of [PersistenceMode] but its not working with this.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups