Copied to clipboard

Flag this post as spam?

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


  • Jeffrey Schoemaker 408 posts 2138 karma points MVP 8x c-trib
    Jan 25, 2013 @ 11:16
    Jeffrey Schoemaker
    0

    getProperty("") on a checkboxlist returns the values instead of the IDs

    Hi,

    I'm using a checkbox list in Umbraco (the built-in datatype) and according to the documentation the checkboxlists

    "Displays a list of preset values as a list of checkbox controls. The preset values are modified in the developer section under "data types" / checkbox list where new items can be added. The value saved is a comma separated string of prevalue IDs"

    But if I do this

    Node nTest = Node.GetCurrent();
    String s = nTest.GetProperty("gebied").Value;

    The string is comma seperated string of the values instead of the IDs. I'm using Umbraco 4.11.1.

    The database has stored the commaseperated IDs, but somehow .GetProperty("").Value turns into the values.

    Hope anyone has an answer,


    Jeffrey

Please Sign in or register to post replies

Write your reply to:

Draft