Copied to clipboard

Flag this post as spam?

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


  • Michael Mégroz 20 posts 111 karma points
    Nov 01, 2016 @ 09:00
    Michael Mégroz
    0

    Partial View , Grid

    Hi

    I try to work with grid. The code for the Grid is in InfoView.cshtml. I call this from InfoPage.cshtml. But this is not working. Why ?

    I get a error in InfoView.cshtml this Code is naver call Why? Thanks Fro Help

    enter image description here

    enter image description here

    enter image description here

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    Nov 01, 2016 @ 09:23
    Dennis Adolfi
    0

    Hi Michael.

    Maybe this is a longshot, but I saw that you have mis-spelled ContentSection and wrote ConntenSection in your section, could that be the problem?

    @section Connten_Section
    {
    @CurrentPage.GetGridHtml("content", "Grid/InfoView")
    }
    
  • Michael Mégroz 20 posts 111 karma points
    Nov 01, 2016 @ 09:33
    Michael Mégroz
    0

    From my Mast Template to the ConntenSection works. Butte the cole from the Conttent_section to the Partila View ist not working

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    Nov 01, 2016 @ 09:41
    Dennis Adolfi
    0

    Ok, just checking! :)

    What is the error message? Get any error in your log files?

  • Michael Mégroz 20 posts 111 karma points
    Nov 01, 2016 @ 09:44
    Michael Mégroz
    0

    this

    enter image description here

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    Nov 01, 2016 @ 09:49
    Dennis Adolfi
    0

    That is not a error message, its a breakpoint warning. Do you get any errors when you run the site in debug mode? Or in the logs?

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    Nov 01, 2016 @ 09:51
    Dennis Adolfi
    0

    Can you try the following:

    @CurrentPage.GetGridHtml("content", "/Views/Partials/Grid/InfoView.cshtml")
    

    https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/grid-layout/render-grid-in-template

  • Michael Mégroz 20 posts 111 karma points
    Nov 01, 2016 @ 10:05
    Michael Mégroz
    0

    not working. is my log

    enter image description here

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    Nov 01, 2016 @ 10:33
    Dennis Adolfi
    100

    So try any of the following:

    • Make sure that the alias of your grid editor is content.
    • Make sure that the ContentSection in your InfoPage.cshtml actually gets rendered. Try adding some text or something right above the @CurrentPage.GetGridHtml.. method, but still within the @section Conntensection {} and see if that renders in your view.
  • Michael Mégroz 20 posts 111 karma points
    Nov 01, 2016 @ 13:18
    Michael Mégroz
    1

    thanks for your halp.

    It was the name of the Property

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    Nov 01, 2016 @ 13:21
    Dennis Adolfi
    0

    Awesome, glad it worked out for you Michael! :)

Please Sign in or register to post replies

Write your reply to:

Draft