November Happy Hour will be moved to Thursday December 5th.

additionalViewData on PropertyFor doesn't work

Vote:
 
@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?

#66271
Feb 26, 2013 10:30
Vote:
 

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

#66451
Feb 28, 2013 16:59
Vote:
 

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!

#69785
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.