Copied to clipboard

Flag this post as spam?

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


  • Jason 122 posts 637 karma points
    Nov 30, 2017 @ 23:39
    Jason
    0

    Grid Layout, How do you get the HTML out for the grid in a class?

    Does anyone know how to get the rendered output of a grid layout in code? I am building an API that I need to include the HTML from a grid layout property. The HTML helper "GetGridHtml" seems to be only available in a view.

  • Ben Palmer 176 posts 842 karma points c-trib
    Dec 01, 2017 @ 09:22
    Ben Palmer
    0

    Hi Jason,

    I'm currently looking into the same thing - for now I'm using the old method which is an extension on a render model I think - Model.Content.GetGridHtml(). It's deprecated however so we'll need to find another method.

    I'll let you know if I find another solution but in the meantime that could work, or at least set you on the right path.

  • Jason 122 posts 637 karma points
    Dec 01, 2017 @ 20:26
    Jason
    0

    Thanks, Ben. I found a similar thing. I wish that GetGridHtml was an extension off of the UmbracoHelp instead of one that was off of the HtmlHelper.

Please Sign in or register to post replies

Write your reply to:

Draft