I developed a custom datatype that is basically a dropdownlist for a custom type...this type has its own ID and text and is stored serialized in the VALUE column.
In the front-end, the dropdown must have the custom type ID and custom type Value (so where in the normal dropdownlist the id of each dropdown item is the the row id in this case the dropdown id is the customtype id).
The issue is, when i have this <umbraco:Item useIfEmpty="myDrop" runat="server" /> in a template the value that i get is from another datatype...it varys depending on what is selected...
Front-end code snippet:
public class MyDropdownDataEditor: System.Web.UI.WebControls.DropDownList, umbraco.interfaces.IDataEditor
{
public void Save() { _data.Value= this.SelectedValue; }
Custom Datatype issue
Hi everyone!
I developed a custom datatype that is basically a dropdownlist for a custom type...this type has its own ID and text and is stored serialized in the VALUE column.
In the front-end, the dropdown must have the custom type ID and custom type Value (so where in the normal dropdownlist the id of each dropdown item is the the row id in this case the dropdown id is the customtype id).
The issue is, when i have this <umbraco:Item useIfEmpty="myDrop" runat="server" /> in a template the value that i get is from another datatype...it varys depending on what is selected...
Front-end code snippet:
public class MyDropdownDataEditor: System.Web.UI.WebControls.DropDownList, umbraco.interfaces.IDataEditor
{
public void Save()
{
_data.Value= this.SelectedValue;
}
}
How can i solve this?
Thanks.
is working on a reply...