Copied to clipboard

Flag this post as spam?

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


  • Marshall Penn 83 posts 268 karma points
    Aug 25, 2017 @ 09:34
    Marshall Penn
    0

    How to access MultiPicker objects from controller

    I have a multipicker on my page, and can successfully select multiple objects - but how can i access the selected data in the controller to add it into my model.

    In the code below Person is my poco which is being multiple selected, with the model having a property of List

    IEnumerable

    This gives nothing. What am i doing wrong?

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Aug 28, 2017 @ 10:44
    Alex Skrypnyk
    0

    Hi Marshall

    What about the type of object? What type is TeamMembers property?

    Thanks,

    Alex

  • Marshall Penn 83 posts 268 karma points
    Aug 28, 2017 @ 20:57
    Marshall Penn
    0

    TeamMembers property is this:

    [Ignore] [UIOMaticListViewField(Name = "Members", View = UIOMatic.Constants.FieldViews.Label)] [UIOMaticField(Name = "Members", Description = "Team members", View = UIOMatic.Constants.FieldEditors.List, Config = "{'typeAlias': 'people', 'typeName': 'Umbraco5.Models.Pocos.Person, Umbraco5', 'foreignKeyColumn' : 'Id', 'canEdit' : false}")] public IEnumerable

    Thanks, Marshall

  • Marshall Penn 83 posts 268 karma points
    Aug 28, 2017 @ 20:58
    Marshall Penn
    0

    Its also this is the Model:

    public List

    Marshall

Please Sign in or register to post replies

Write your reply to:

Draft