I'm not exactly sure I follow what you are asking, but here's my go of it.

Adapt to you favorite view engine syntax:

foreach(var item in ${foo.Items})
{
       foreach(var line = item.Lines)
       {
            $FormHelper.RadioField("res"+item.Resolution.ToString(),
line)    ${line}      <br/>
       }
     <hr />
}





On Wed, Sep 9, 2009 at 2:53 PM, Gilles<[email protected]> wrote:
>
> Hi,
> I have the following object which I bind to a Form in my view:
>
>
> public class Foo
> {
>    public List<Bar> Items { get; set; }
> }
>
> public class Bar
> {
>    public List<string> Lines { get; set; }
>    public int Resolution { get; set; }
> }
>
>
> I am presenting this information to the user as various groups of
> RadioFields.
>
> How do I bind the RadioFields so that they display a group of
> RadioFields for each item in Items. Each group of RadioFields having
> an option for each Lines and that each group of RadioFields is bounded
> to Resolution?
>
> Right now, I can show the information, but I can't get the databinding
> to work.
>
> >
>



-- 
Truth,
    James

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to