如何在Combobox Silverlight中设置复选框值?

发布于 2025-01-01 09:17:02 字数 192 浏览 2 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

伊面 2025-01-08 09:17:02

听起来,如果使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文