Copied to clipboard

Flag this post as spam?

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

  • Ras 52 posts 293 karma points
    18 days ago

    Get the available values of a specific data type in a controller?

    I'm trying to get the values of a checkboxlist but I can't seem to figure it out.

    I can get the actual property type from my document type like so

      var productionPage = _contentTypeService.Get(ProductionPage.ModelTypeAlias);
      var propertyType = productionPage.PropertyTypes.FirstOrDefault(x => x.Alias == "ageGroups");

    But after that I can't find any way to actually see what options the checkboxlist has? How can i achieve this?

  • Huw Reddick 1659 posts 5776 karma points MVP c-trib
    18 days ago
    Huw Reddick

    Try something like


  • Ras 52 posts 293 karma points
    14 days ago

    I did end up doing something similar to this, but I'll mark this as the solution as it's the correct method to use

Please Sign in or register to post replies

Write your reply to: