如何在Combobox Silverlight中设置复选框值?
我在 Rad telerik 控件中采用了多选组合框。 即:组合框项内的复选框
我面临的问题与视图模型中复选框的设置值有关。我使用的是 MVVM 模式,所以我无法找到绑定关系。 在表单添加模式下可以,因为复选框中没有设置值。但在编辑模式下,我从数据库收集选定的值列表并将其设置为组合框。但我无法设置值。有什么想法吗?
任何帮助将不胜感激。
I have taken multiselect combobox in Rad telerik control.
ie: checkbox inside combobox item
The problem which i am facing is related to setting value of checkbox, from viewmodel. I am using MVVM pattern, so i am not able to find the binding relationship.
In form Add mode it will fine because there is not setting value in check box. but in edit mode i collect selected value list from database and set it to combobox. but i am not able to set value. any idea for that?
Any help will be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来,如果使用 MVVM,您需要在 ViewModel 中进行某种包装集合,以便您轻松绑定到该复选框。
It sounds like, if using MVVM, you need some sort of wrapping collection in your ViewModel that let you easily bind to that checkbox.