Copied to clipboard

Flag this post as spam?

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


  • Martin Griffiths 826 posts 1269 karma points c-trib
    Dec 19, 2012 @ 11:35
    Martin Griffiths
    0

    CodeFirst Prevalue Datasource id issue

    Tim hopefully you'll pick on this one.

    If I create a pre-value datasource with say 5 entries for use with a radiobuttonlist and set the id's from 1-5 and use the datasource more than once in the same form, the id's clash on the form. This causes label problems ie. selecting the label further down the form changes the state of the first group (of a radiobutton list)

    Is there any way around this?

    Martin

  • Comment author was deleted

    Dec 19, 2012 @ 13:27

    Added to our issue tracker will take a look this week and report back http://issues.umbraco.org/issue/CON-191

  • Comment author was deleted

    Dec 19, 2012 @ 13:54

    Ok looks like an update of some of the views should do it, working on it now :) thanks for reporting the issue :)

  • Comment author was deleted

    Dec 19, 2012 @ 14:54

    WIll be fixed in 3.0.5, to do a quickfix on your install, you'll need to update 2 views

    \Umbraco\plugins\umbracoContour\Views\FieldType.RadioButtonList.cshtml

    \Umbraco\plugins\umbracoContour\Views\FieldType.CheckBoxList.cshtml

    where it says @pv.id replace it with @string.Concat(Model.Id,"_",pv.Id)

  • Martin Griffiths 826 posts 1269 karma points c-trib
    Dec 19, 2012 @ 15:48
    Martin Griffiths
    0

    No worries Tim, you always seem so prompt at jumping on it. So i'm forever greatful.

    Martin

  • Martin Griffiths 826 posts 1269 karma points c-trib
    Dec 19, 2012 @ 16:17
    Martin Griffiths
    0

    Hi Tim

    One thing worth noting, Razor seems to be a bit flaky when handling whitespace/newline(s).

    I've had to remove the blank line (2) from both FieldType.RadioButtonList.cshtml and FieldType.CheckBoxList.cshtml. I also removed some of the formatting from form.cshtml to ensure that the label caption didnt have masses of whitespace either side of it.

    Use the Chrome Element picker to see what I mean. It has caused me some CSS formatting issues.

    Martin

  • Martin Griffiths 826 posts 1269 karma points c-trib
    Dec 19, 2012 @ 17:41
    Martin Griffiths
    0

    Hi Tim

    I'm trying to move my codefirst dll from dev to staging but keep getting the following error any idea why it might be doing this???

    Sequence contains no matching element

Please Sign in or register to post replies

Write your reply to:

Draft