Copied to clipboard

Flag this post as spam?

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


  • Pete 152 posts 176 karma points
    Sep 15, 2009 @ 11:20
    Pete
    0

    editorControls.SelectedValue doesn't set the selected value?

    Code in question:

    switch (propertyControl.GetType().ToString())

                {

                    case "umbraco.editorControls.dropdown":

    ((umbraco.editorControls.dropdown)propertyControl).SelectedValue = propertyValue;

    break;

    }

     

    I have confirmed that propertyValue is a value within the dropdown but after this statement is run, the SelectedValue doesn't appear to be set and isn't set in the HTML dropdown output at the end. 

     

    Any suggestions? Am I doing something wrong?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies