Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • adamsimsy 31 posts 46 karma points
    May 16, 2011 @ 17:00
    adamsimsy
    0

    Custom DataType using IUsercontrolDataEditor losing viewstate of Dynamic controls

    I have found similar posts which discuss the issue i am having but have been unable to find a solution.

    Overview of what i'm trying to achive...

    I have created a custom DataType to provide tagging of Documents. I generate a list of available tags which can be selected with a Checkbox. I then store these values as XML. I've had to create a custom type as i provide approval of these tags using a second checkbox for each item.

    What i'm finding is on some occasions when i rebuild the dynamic list on "Page_Init", i lose the selected values of checkboxes. However the text boxes do keep their values. 

    My question...

    Can i attach/add an event handler to the Save event so that i can save the values without having to rebuild the custom list a losing ?

  • aghy 129 posts 308 karma points
    May 16, 2011 @ 17:26
    aghy
    0

    Hi Adam,

    When you build the dynamic controls are you giving each element an ID?

    Ben

  • adamsimsy 31 posts 46 karma points
    May 16, 2011 @ 22:56
    adamsimsy
    0

    Hi Aghy.

    Yes i'm doing exactly that. Assigning the same ID when the dynamic controls are built. 

    Adam

  • adamsimsy 31 posts 46 karma points
    Jun 01, 2011 @ 10:59
    adamsimsy
    0

    We missed a few IDs on some of the controls which when fixed resolved the issue.

    Cheers.

    Adam

Please Sign in or register to post replies

Write your reply to:

Draft