Copied to clipboard

Flag this post as spam?

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

  • itaRubin 11 posts 110 karma points
    May 30, 2019 @ 09:50

    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 576 posts 3756 karma points MVP 3x c-trib
    May 30, 2019 @ 12:31
    Søren Kottal

    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 61 posts 177 karma points
    Jun 12, 2020 @ 08:46
    Sean Håkansson

    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.

Please Sign in or register to post replies

Write your reply to: