Copied to clipboard

Flag this post as spam?

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


  • itaRubin 13 posts 113 karma points
    May 30, 2019 @ 09:50
    itaRubin
    0

    Use grid property editor in nested content

    Is it possible to use grid property editor in nested content and if so... how?

  • Søren Kottal 713 posts 4571 karma points MVP 6x c-trib
    May 30, 2019 @ 12:31
    Søren Kottal
    100

    Hi itaRubin

    It is, you place it on your nested document type like you would do normally, there is no secret tricks to it.

  • Sean Håkansson 68 posts 204 karma points
    Jun 12, 2020 @ 08:46
    Sean Håkansson
    0

    How do you I render the grid from nested content?

    foreach (var block in Model.PageBlocks)
    {        
      @Html.GetGridHtml(block, "ArticleContent", "Framework")
    }
    

    Since "block" is an Elemental datatype it wont extend IPublishedContent. And I can't figure out how to use models builder since it only outputs t JToken, and not the actual property needed for the GedGridHtml helper.

  • 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