将 Monorail RadioFields 绑定到 GenericLists
在我看来,我有以下对象绑定到表单:
public class Foo
{
public List<Bar> Items { get; set; }
}
public class Bar
{
public List<string> Lines { get; set; }
public int Resolution { get; set; }
}
我将此信息作为各种 RadioField 组呈现给用户。
如何绑定 RadioFields,以便它们为 Items 中的每个项目显示一组 RadioFields。每组 RadioFields 对每条线都有一个选项,并且每组 RadioFields 都受分辨率限制?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个简单的旧 HTML 问题
It's a plain old HTML question