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)
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.
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
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
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
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)
No worries Tim, you always seem so prompt at jumping on it. So i'm forever greatful.
Martin
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
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
is working on a reply...