Copied to clipboard

Flag this post as spam?

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


  • Frans de Jong 548 posts 1840 karma points MVP 3x c-trib
    Aug 10, 2017 @ 11:46
    Frans de Jong
    0

    Get all radio prevalues of property

    Hi All,

    I want to get all values for a radiolist with a propertyalias. Is that possible in Umbraco 7.6.4?

    What I have now is the following:

    IDataTypeDefinition filterDefinition = Services.DataTypeService.GetDataTypeDefinitionByName("Duurzame daden filter");
    model.FilterOptions = Services.DataTypeService.GetPreValuesCollectionByDataTypeId(filterDefinition.Id).PreValuesAsDictionary;
    

    But I would like to get the "duurzame daden filter" from Model.Content.Filter but due to the propertyvalueconverters this only returns the Id of the selected option.

    Frans

Please Sign in or register to post replies

Write your reply to:

Draft