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. Web Custom Control & Custom Collection problem

Web Custom Control & Custom Collection problem

Scheduled Pinned Locked Moved ASP.NET
helpvisual-studiocsharp
1 Posts 1 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.
  • D Offline
    D Offline
    Donald_a
    wrote on last edited by
    #1

    I have a custom collection of complex types. The type is 'GraphValue' and the collection is 'GraphValueCollection'. On my Web Custom control I have a property 'GraphValues' which is a GraphValueCollection. I have it set up such that the whole thing works through Visual Studio's designer & the control works fine at runtime. However, as soon as i use the designer to add a GraphValue to the collection & build the project, the designer shows the default "Error creating control" dialog with the tooltip saying '' could not be set on property 'GraphValues'. The '' is not my fat fingers either - its 2 single quotes!! The control still works fine at runtime - but this is a very annoying problem. I'm using the attributes ParseChildren(true) and PersistChildren(false) on the custom control class I'm using the attributes PersistenceMode(PersistenceMode.InnerProperty), NotifyParentProperty(true) and DesignerSerializationVisibility(DesignerSerializationVisibility.Content) on the Property. The Property has both Get & Set accessors - I've seen a similar post where somebody solved the issue by removing the set accessor, but if i do this the IDE crashes!! Any help to solve this much appreciated. Thanks Donald

    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