如何在Combobox Silverlight中设置复选框值? [英] How to set checkbox value inside Combobox Silverlight?

查看:95
本文介绍了如何在Combobox Silverlight中设置复选框值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Rad telerik控件中使用了多选组合框.即:组合框项目内的复选框

我面临的问题是  的设置值的相关复选框,来自视图模型.我使用 MVVM模式,所以我不能能够 查找绑定关系. 添加模式下,它会很好,因为存在  span>  选中框中设置值 .但是编辑模式下,我从 数据库  设置为组合框.但是我不能能够设置 设置值. 任何想法用于的想法?

任何帮助将不胜感激.

解决方案

理想情况下,您需要使用附件行为,它将标记您当前的项目,然后设置当前项目的复选框.


大家好,
我解决了这个问题并将其发布在codeproject中.

请查看此链接,
在组合框内添加复选框


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.

解决方案

Ideally, you need to use an attached behaviour that will mark the current item in your and then set the checkbox for the current item.


Hi all,
I solve this and post in codeproject.

Please review this link,
Add Checkbox inside Combobox


这篇关于如何在Combobox Silverlight中设置复选框值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆