Copied to clipboard

Flag this post as spam?

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


  • Rockit8 16 posts 36 karma points
    Jun 04, 2012 @ 19:56
    Rockit8
    0

    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.

     

Please Sign in or register to post replies

Write your reply to:

Draft