Copied to clipboard

Flag this post as spam?

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


  • Jin Botol 130 posts 282 karma points
    Dec 05, 2017 @ 07:36
    Jin Botol
    0

    nuPicker - How display Related Items with the same nuPicker ID?

    Hi guys,

    Hope all is well.

    I have a problem regarding on how to display related items with the same nuPicker ID.

    I have a nuPicker Dropdown list. List of builders. (image below)enter image description here

    I already get the ID of the selected nuPicker

    /* Get the selected nuPicker  */
    @CurrentPage.builder
    
    /* OUTPUT */
    [ { "key": "3124", "label": "One Homes" } ]
    
    /* Get the selected nuPicker ID */
    var BuilderId = CurrentPage.builder.PickedKeys[0];  //3124
    

    Now, I want to display all the Siblings() of One Homes or the same in BuilderId

    I've already tried this: see my code below

    @foreach (var relatedItems in Model.Content.Siblings().Where(x => x.Id != Model.Content.Id && x.GetPropertyValue<string>("BuilderId") == BuilderId)
    {
        @relatedItems .Name
    }
    

    But still no luck!

    It has no display I think the foreach statement is not true.

    Hope anyone can help me, I'm stuck with this problem.

    Thanks in advance.

    Jin

  • Jin Botol 130 posts 282 karma points
    Dec 06, 2017 @ 03:44
    Jin Botol
    0

    Hi guys,

    Any help for this? I'm still seeking for a solution.

    Thanks in advance,

    Jin

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies