I've browsed through loads of posts on more or less my type of problem, but I'm unable to find the exact solution to my problem.
I based my datatype on the http://www.nibble.be/?p=24 example. It's a listbox with static list items, which triggers some other controls in it's selectedindexchanged event. That's also where I set the umbracoValue to selected listeitem.
I've registered the datatype as database datatype nvarchar, and I run my datatype without problems, but the value I hope to assign is not saved to the database/xml data.
When I run my usercontrol from VS2010 the umbraco value is both got and set. My code (the interesting part of it):
So it's solved. Watching Tims video on custom datatypes with usercontrol wrapper enlightened me. Ditching the string umbracValue from his blog code and connecting the value object directly with the control with the value I wanted stored made all the difference to me ;-)
Custom datatype and value is not saved (again)
I've browsed through loads of posts on more or less my type of problem, but I'm unable to find the exact solution to my problem.
I based my datatype on the http://www.nibble.be/?p=24 example. It's a listbox with static list items, which triggers some other controls in it's selectedindexchanged event. That's also where I set the umbracoValue to selected listeitem.
I've registered the datatype as database datatype nvarchar, and I run my datatype without problems, but the value I hope to assign is not saved to the database/xml data.
When I run my usercontrol from VS2010 the umbraco value is both got and set.
My code (the interesting part of it):
So it's solved. Watching Tims video on custom datatypes with usercontrol wrapper enlightened me. Ditching the string umbracValue from his blog code and connecting the value object directly with the control with the value I wanted stored made all the difference to me ;-)
is working on a reply...