Copied to clipboard

Flag this post as spam?

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


  • Matt 359 posts 842 karma points
    Oct 29, 2021 @ 10:46
    Matt
    0

    Error when trying to render grid

    Hi all,

    Im trying to render a grid using

    @Html.GetGridHtml(panel.GetProperty("menuGrid", "webflow"));

    But I'm getting the following error;

    Compiler Error Message: CS1501: No overload for method 'GetProperty' takes 2 arguments

    I only seem to have got this after I put a master template above it

    Any ideas?

    Thanks

  • Dennis 75 posts 400 karma points MVP 2x
    Oct 29, 2021 @ 14:14
    Dennis
    0

    Hi Matt,

    Perhaps you could try the following overload of GetGridHtml:

    @Html.GetGridHtml(Model, "[Your property alias]")

    where Model is your IPublishedContent and [Your property alias] is the property alias of your grid property.

    I am currently using this overload to render my grid and it is working properly.

    I hope this helps! Let me know if you have any more questions or issues :D

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies