Copied to clipboard

Flag this post as spam?

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


  • Matt 353 posts 825 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 397 karma points MVP
    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

Please Sign in or register to post replies

Write your reply to:

Draft