Hello,
I'm using the combobox in this example inside a grid as a celledittemplate:
http://www.telerik.com/community/forums/silverlight/combobox/multiselect-option-in-combo-box.aspx
I'm now stuck because I want to bind the comma separated values to the column dataitem, it is a string type.
I'm kind of new to wpf binding and I've tried a lot of things to get this done, but cannot achieve my goal.
please help.
Here's the column definition, Choices is the property I need to bind the results of the checked items.
I'm using the combobox in this example inside a grid as a celledittemplate:
http://www.telerik.com/community/forums/silverlight/combobox/multiselect-option-in-combo-box.aspx
I'm now stuck because I want to bind the comma separated values to the column dataitem, it is a string type.
I'm kind of new to wpf binding and I've tried a lot of things to get this done, but cannot achieve my goal.
please help.
Here's the column definition, Choices is the property I need to bind the results of the checked items.
| <telerik:GridViewDataColumn Header="Choices" |
| DataMemberBinding="{Binding Choices, Mode=TwoWay}"> |
| <telerik:GridViewDataColumn.CellEditTemplate> |
| <DataTemplate> |
| <telerik:RadComboBox x:Name="ChoicesCombo" |
| Loaded="OnChoicesComboBoxLoaded" SelectedIndex="0" |
| SelectedValue="{Binding Choices, Mode=TwoWay}" > |
| <telerik:RadComboBox.ItemTemplate> |
| <DataTemplate> |
| <CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}" |
| Content="{Binding Text}" /> |
| </DataTemplate> |
| </telerik:RadComboBox.ItemTemplate> |
| <telerik:RadComboBox.SelectionBoxTemplate> |
| <DataTemplate> |
| <TextBlock Text="{Binding Owner.CheckedItems, Converter={StaticResource ValueConverter}}" /> |
| </DataTemplate> |
| </telerik:RadComboBox.SelectionBoxTemplate> |
| </telerik:RadComboBox> |
| </DataTemplate> |
| </telerik:GridViewDataColumn.CellEditTemplate> |
| </telerik:GridViewDataColumn> |