Copied to clipboard

Flag this post as spam?

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


  • Will Maginn 8 posts 31 karma points
    Sep 10, 2012 @ 13:45
    Will Maginn
    0

    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

     

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Sep 10, 2012 @ 14:56
    Lee Kelleher
    0

    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:

    <add key="ucomponents:RazorModelBinding" value="false" />

    Cheers, Lee.

  • Will Maginn 8 posts 31 karma points
    Sep 17, 2012 @ 17:40
    Will Maginn
    0

    Hey Lee,

    Thanks for your reply, I copied over the DLLs into the folder directly.

    Your answer helped, 

    Thank you,

    Will

Please Sign in or register to post replies

Write your reply to:

Draft