Hi
I want ComboBoxes with CheckBoxes. I have use the code in this Post. I am able to get the combobox Items with Checkboxes.But If I Check multiple Items,it is not reflecting in the ComboBox. I think I am doing wrong binding in the SelectionDataBoxTemplate.Could you please help me to resolve this.
<
DataTemplate
x:Key
=
"SelectionBoxTemplate"
>
<
TextBlock
Text
=
"{Binding UserCtrlSelectedValue, RelativeSource={RelativeSource AncestorType=local:ComboBoxEditor}}"
Loaded
=
"ControlCombo_Loaded"
/>
</
DataTemplate
>
<
Grid
>
<
telerik:RadComboBox
Name
=
"ControlCombo"
ItemsSource
=
"{Binding ItemsSource, RelativeSource={RelativeSource AncestorType=local:ComboBoxEditor}}"
ItemTemplateSelector
=
"{StaticResource dataTemplateSelector}"
SelectionBoxTemplate
=
"{StaticResource SelectionBoxTemplate}"
/>
</
Grid
>
The code above shown is for datatemplate and RadCombobox in UserControl. In DataTemplate I am binding the Text Property of textblock with one of the dependencyProperty on the usercontrol and the datacontext of combobox is not the usercontrol another viewmodel.
I have tried the code in this post also.
Regards,
Nagasree.