Copied to clipboard

Flag this post as spam?

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


  • rob 75 posts 170 karma points
    Jun 12, 2015 @ 09:58
    rob
    0

    How to pass data to macros in a Grid?

    If you have a grid with two columns and two rows and each item is a macro how can you get data from the controller to those macros?

    I have tried route hijacking and custom models, but either the model has not got any data in it or the error error CS0030: Cannot convert type 'Umbraco.Web.Models.PartialViewMacroModel' to 'My.Model1'.

    All the fixes for that error and examples for passing custom models are for partial views not macros and especially not macros in grids.

    Is this even possible?

Please Sign in or register to post replies

Write your reply to:

Draft