Try our conversational search powered by Generative AI!

additionalViewData on PropertyFor doesn't work

@Html.PropertyFor(m => m.Section1, additionalViewData:new { @class = "my-class"})


The ViewData object is always emtpy. And from what I can see in the code it doesn't seem to be used by EPiServer either. Is this a bug or a not supported feature?

Feb 26, 2013 10:30

I believe that data gets rendered as the attribute data-epi-property-rendersettings on the DOM node for that property.

Feb 28, 2013 16:59

We have exactly the same issue and we would would also like to know how to solve it.

All we like to do is pass data from our MVC pageview to a Block (controller).

Thanks in advance!

Apr 05, 2013 15:36
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.