问题描述
大家好,
i要求RadComboBox内部显示复选框项目。当选中/取消选中复选框项目时,RadComboBox显示测试需要相应更改。请帮帮我在这个。
我尝试了什么:
< telerik :radcombobox horizontalalignment =Leftxmlns:telerik =#unknown>
x:Name =cmbCategory
Width =350
ItemsSource ={Binding ProcessNames,Mode = TwoWay}SelectedIndex =0
Grid.Column =1>
< telerik:radcombobox。 itemtemplate>
< datatemplate>
< stackpanel orientation =Horizontal>
< checkbox name =BusinessProcessNamecontent ={Binding CheckProcessNames,Mode = TwoWay}ischecked ={Binding IsSelected,Mode = TwoWay} >
Hi All,
i have requirement that inside RadComboBox showing checkbox items.when checkbox items are checked/unchecked then RadComboBox display test need to change accordingly.Please help me on this.
What I have tried:
<telerik:radcombobox horizontalalignment="Left" xmlns:telerik="#unknown">
x:Name="cmbCategory"
Width="350"
ItemsSource="{Binding ProcessNames,Mode=TwoWay}" SelectedIndex="0"
Grid.Column="1" >
<telerik:radcombobox.itemtemplate>
<datatemplate>
<stackpanel orientation="Horizontal">
<checkbox name="BusinessProcessName" content="{Binding CheckProcessNames,Mode=TwoWay}" ischecked="{Binding IsSelected,Mode=TwoWay}">
推荐答案
CheckBoxes="True"
并检查选择索引更改的值以使selecteditem进行进一步编码。
如果有帮助,请标记答案。
in Telerik radcombobox and check value on selection index change to get selecteditem to do further coding.
Please mark answer if it's helpful.
这篇关于使用WPF / C#复选框内的Radcombobox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!