Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    Feb 16, 2011 @ 21:16
    Anthony Candaele
    0

    access prevalues from usercontrol

    Hi,

    I'm looking for a way to access prevalues from an umbraco dropdownlist datatype from within a usercontrol.

    Thanks for your advice,

    Anthony Candaele
    Belgium

  • Anthony Candaele 1197 posts 2049 karma points
    Feb 20, 2011 @ 13:40
    Anthony Candaele
    0

    Hi, no one any idea? I can't imagine, no one has ever accesses prevalues from an Umbraco dropdownlist from a web user control (.ascx)

    The user scenario I would like to enable is that editors can can check wich list items they want to add to a check box list. These list items are then accessed in a web user control and added programmaticaly to a <asp:CheckboxList>

    Thanks for your help,

    Anthony

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Feb 21, 2011 @ 14:01
    Tom Fulton
    0

    Hi Anthony,

    There's a function built into the library for this, it's: 

    umbraco.library.GetPreValues('0000')

    This will return an XML nodeset of the prevalues for the Datatype Node ID that you pass in (you get it by hovering over the datatype in the Developer section).  Theres an example similar to what you want to do in the wiki - GetPreValues

    Hope this helps...
    -Tom

Please Sign in or register to post replies

Write your reply to:

Draft