Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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)
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
One Homes
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.
foreach statement
Hope anyone can help me, I'm stuck with this problem.
Thanks in advance.
Jin
Any help for this? I'm still seeking for a solution.
Thanks in advance,
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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)
I already get the ID of the selected nuPicker
Now, I want to display all the Siblings() of
One Homes
or the same inBuilderId
I've already tried this: see my code below
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
Hi guys,
Any help for this? I'm still seeking for a solution.
Thanks in advance,
Jin
is working on a reply...