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 702 posts 4497 karma points MVP 5x 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 66 posts 192 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.

Please Sign in or register to post replies

Write your reply to:

Draft