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 ?
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 ?
Hi Adam,
When you build the dynamic controls are you giving each element an ID?
Ben
Hi Aghy.
Yes i'm doing exactly that. Assigning the same ID when the dynamic controls are built.
Adam
We missed a few IDs on some of the controls which when fixed resolved the issue.
Cheers.
Adam
is working on a reply...