Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
Hi Matt,
Perhaps you could try the following overload of GetGridHtml:
GetGridHtml
@Html.GetGridHtml(Model, "[Your property alias]")
where Model is your IPublishedContent and [Your property alias] is the property alias of your grid property.
Model
[Your property alias]
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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;
I only seem to have got this after I put a master template above it
Any ideas?
Thanks
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
is working on a reply...