Copied to clipboard

Flag this post as spam?

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


  • Christina 127 posts 390 karma points notactivated
    Nov 06, 2019 @ 13:50
    Christina
    0

    Content.setvalue for IEnumerableList Nested Content

    Hi I want to set value dynamically in in my nestedcontent list

    my list is IEnumbreable

    Many Thanks! Christina obviously my where doesn't work how else can i do otherwise

    foreach (SlopeComponentFormModel s in model.Allslopesform)
    {
        content.SetValue(SlopeComponent.GetModelPropertyType(d => d.IsOpen).Where(i=>i.SlopeName==s.SlopeName).Alias, s.IsOpen);
    
    }
    

    I Found Out I here but https://our.umbraco.com/packages/backoffice-extensions/nested-content/nested-content-feedback/88895-creating-nested-content-programatically

  • 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