Since upgrading to 5.0.0 beta, I have noticed you can't easly access items in the datagrid any more in a razor script?
Looking at the comments in the razor example, someone has managed to work out how to do this, but it looks like an overly complex and backword step from how you could access the items before in razor?
Did you upgrade via the package installer? (or copy over the DLLs in the /bin folder directly?)
The package installer has an option to disable the Razor Model Binding, which is a new feature. The Razor engine is able to cast the data-type values into strongly-type models, for easier access/use. The side-effect of this is that existing Razor scripts would most likely break.
To disable that functionality, add this option to your Web.config's AppSettings:
Umbraco 4.9, ucomponents 5.0.0 (beta)
Hey,
Since upgrading to 5.0.0 beta, I have noticed you can't easly access items in the datagrid any more in a razor script?
Looking at the comments in the razor example, someone has managed to work out how to do this, but it looks like an overly complex and backword step from how you could access the items before in razor?
http://ucomponents.codeplex.com/wikipage?title=DataTypeGridRazorSamples&ANCHOR
Is this just a beta issue? Or will there be a more help technique in the future?
Thanks,
Will
Hi Will,
Did you upgrade via the package installer? (or copy over the DLLs in the /bin folder directly?)
The package installer has an option to disable the Razor Model Binding, which is a new feature. The Razor engine is able to cast the data-type values into strongly-type models, for easier access/use. The side-effect of this is that existing Razor scripts would most likely break.
To disable that functionality, add this option to your Web.config's AppSettings:
Cheers, Lee.
Hey Lee,
Thanks for your reply, I copied over the DLLs into the folder directly.
Your answer helped,
Thank you,
Will
is working on a reply...