Copied to clipboard

Flag this post as spam?

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


  • Niklas Raab 9 posts 79 karma points
    Apr 13, 2017 @ 09:04
    Niklas Raab
    0

    Call Doc Type Grid Editor from View

    Hello,

    i'm using the package Doc Type Grid Editor and it is way better than using the macros in Umbraco, but now i want to call a Doc Type Grid Editor PartialView from the code in a view. How can i do this?

    PS: Proberly a name change would be a dream, because DocTypeGridEditor is a bit long.

    Thank you very much for helping out,

    Niklas

  • Garry Bain 149 posts 124 karma points
    Apr 18, 2017 @ 10:59
    Garry Bain
    0

    Hello,

    I've just started using this and I'm using the following in my View to call it:

    @Model.Content.GetGridHtml(Html, "homeGrid")
    

    You can also call it using a different view like this:

    @Model.Content.GetGridHtml(Html, "homeGrid", "MyCustomView")
    

    homeGrid being the name of the property I have setup on my page that contains all the grids

    Hope this helps!

Please Sign in or register to post replies

Write your reply to:

Draft