
<telerikInput:RadComboBox x:Name="cbSalesRep1" Grid.Row="0" Grid.Column="0" FilteringMode="Contains" ItemsSource="{Binding SalesRepList, Mode=TwoWay}" |
SelectedItem="{Binding SalesRep1, Mode=TwoWay}" DisplayMemberPath="Name" IsEditable="True" IsReadOnly="False" |
SelectedIndex="0" Height="25" Width="150" HorizontalAlignment="Left" Margin="26,15,22,0" TabIndex="11" telerik:StyleManager.Theme="Windows7"> |
<telerikInput:RadComboBox.ItemTemplate> |
<DataTemplate> |
<CheckBox IsChecked="{Binding IsChecked}" /> |
</DataTemplate> |
</telerikInput:RadComboBox.ItemTemplate> |
</telerikInput:RadComboBox> |
Any ideas? Thank you.
28 Answers, 1 is accepted


<telerikInput:RadComboBox x:Name="cbSalesRep1" Grid.Row="0" Grid.Column="0" FilteringMode="Contains" ItemsSource="{Binding SalesRepList, Mode=TwoWay}" |
SelectedItem="{Binding SalesRep1, Mode=TwoWay}" IsEditable="True" IsReadOnly="False" |
SelectedIndex="0" Height="25" Width="150" HorizontalAlignment="Left" Margin="26,15,22,0" TabIndex="11" telerik:StyleManager.Theme="Windows7"> |
<telerikInput:RadComboBox.ItemTemplate> |
<DataTemplate> |
<CheckBox Content="{Binding Name}" /> |
</DataTemplate> |
</telerikInput:RadComboBox.ItemTemplate> |
<telerikInput:RadComboBox.Effect> |
<DropShadowEffect BlurRadius="2" Direction="220" Opacity="0.3" ShadowDepth="2" Color="#FF252E8C"/> |
</telerikInput:RadComboBox.Effect> |
</telerikInput:RadComboBox> |
But I have to problems now, SelectedIndex=0 is not selecting the first checkbox, and the autocomplete/filter functionality is not working.
What I would like is to have those checkboxes plus the filtering and autocomplete functionalities.
Any suggestion?
Thank you for contacting us.
Please find the attached file in which this approach is illustrated.
If you need further assistance let us know.
All the best,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.

Your checkablecombo application looks to be exactly what I am needing however for some reason when I try to convert it from C# to VB it gives me issues on the
NotifyPropertyChanged.cs & DataItemCollection.cs files,
could you please translate this project to vb so that I may use it in my project?
I do appreciate it.
Bryan
I have attached the converted project. If you have further questions please let me know.
All the best,
Boyan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.

This is realy cool and useful combobox!!

Will multi selection be standard functionality in the near future? Like Infragistics has xamlComboEditor with autocomplete etc...
Thanks
We cannot promice a specific date for delivery of this feature right now, but most probably RadComboBox will not support multi-selection in Q1 2011.
Sincerely yours,
Valeri Hristov
the Telerik team

If you are interested, I did my own MultiSelect combobox with SelectedItems and SelectedValues properties directly on the ComboBox, you can test it here :
http://www.telerik.com/community/code-library/silverlight/general/a-multiselect-combobox.aspx
Cordially,
Kakone.

The provided combobox works nice. But i have run into one issue. After my page loaded sucessfully and i dropdown the combobox and directly use the checkbox, then the selection box gets not updated (and also the SelectionChanged event is not fired). If i click once in the white area next to the checkbox or right to the checkbox text, then it starts working correctly. Then every time i check/uncheck a value, the selection box gets updated.
Till now i have not found a solution for that. I am using the rad combobox in Silverlight controls 2010.3_1110
Any ideas the get rid of this behavior ?
Best regards
Christian
I was not able to reproduce the bad behavior. At my side the checked item is updated fine after directly using the checkbox after opening the ComboBox. I have attached a video how it is behaving at my side. As for the Selection_Changed I can't think of a way to trigger properly in this custom implementation.
I would advice you to wait for a few months when we will provide an out of the box support for multiple selection in RadComboBox. I believe that an early preview of it will be available in April.
Boyan
the Telerik team

Do you have a time frame for when multi-select will be available in the RadComboBox control?
Thank you,
Jon
Unfortunately multiple selection feature of RadComboBox was delayed due to other tasks with higher priority. Most probably it will not be included in Q2 release. We're sorry for the inconvenience.
All the best,
Yana
the Telerik team

Hello "Christian" or any Telerik Admin.
Did you by any chance found any solution to the problem of :
"If i click once in the white area next to the checkbox or right to the checkbox text, then it starts working correctly. Then every time i check/uncheck a value, the selection box gets updated."
I have not found the solution yet. And multichoice by Telerik is still some time away. If anybody have an answer for this problem please do share it. Thank you very much.
Damir
We're still not able to reproduce this issue. Please send us more details or a short video which will help us observe the problem. Thanks
Best wishes,
Yana
the Telerik team

Private
Sub
initCombo()
'create the source of the checkedCombo
'cs = New ComboBoxSource()
''Hard coded select All Item
'cs.Add(New MyDataItem("All", "All", True))
''Add other Items you want
'cs.Add(New MyDataItem("1", "1", True))
'cs.Add(New MyDataItem("2", "2", True))
'cs.Add(New MyDataItem("3", "3", True))
'cs.Add(New MyDataItem("4", "4", True))
'DataBinding
'radCombo1.ItemsSource = cs
Dim
lSelectedGroup
As
String
=
CType
(RadComboBoxGroups.SelectedValue, GroupData).GroupNumber
Dim
lGroupService
As
New
GroupService.GroupDashboardServiceClient
AddHandler
lGroupService.GetDivisionsForGroupForDashboardCompleted,
AddressOf
GetDivisionsForGroupForDashboardCallback
lGroupService.GetDivisionsForGroupForDashboardAsync(lSelectedGroup,
True
)
End
Sub
Private
Sub
GetDivisionsForGroupForDashboardCallback(
ByVal
sender
As
Object
,
ByVal
e
As
GroupService.GetDivisionsForGroupForDashboardCompletedEventArgs)
If
DesignerProperties.IsInDesignTool
Then
Return
End
If
Dim
cs
As
New
ComboBoxSource()
Dim
lRecords
As
List(Of Dictionary(Of
String
,
String
)) = e.Result
For
Each
lRecord
As
Dictionary(Of
String
,
String
)
In
lRecords
cs.Add(
New
MyDataItem(lRecord(
"Division"
).ToString.Trim, lRecord(
"Division"
).ToString.Trim,
True
))
Next
'DataBinding
radCombo1.ItemsSource = cs
End
Sub
If I run the code as is the behavior stated by Damir occurs. If I uncomment the commented out sections and then comment out the lines that make the service call so that the data is hard-coded it works as expected and I do not have to click off in the white space of a comboboxitem (off to the right of the text where it will not toggle the checkbox but it just closes the dropdown) to get it to work. Please provide a solution to this issue as this has still not been addressed as of Q2 2011 SP1.
Thanks!
Could you please open a support ticket and send us a simple example there so we to be able to test the scenario? Thanks in advance
Greetings,
Yana
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

I had the same issue using MVVM + Ria Services databinding. I was able to resolve the selection issue by setting the selected index when the RadComboBox is loaded.
private void RadComboBox_Loaded(object sender, RoutedEventArgs e)
{
this.RadComboBox.SelectedIndex = 0;
}

Thanks again, getting closer!

Thanks in advance...
In order to add validation, I would suggest to implement IDataErrorInfo interface in your ViewModel, the approach is demonstrated here.
Regards,
Yana
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

There is no easy way to achieve this behavior as when the "Enter" key is pressed, the dropdown is closed. You cannot handle the KeyDown event.
Kind regards,
Yana
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

I am sorry I did not explained clearly enough.
RadComboBox is designed to work like this, you can still handle KeyDown by creating a new class which inherits from RadComboBox and overriding its HandleKeyDown:
public
class
CustomComboBox : RadComboBox
{
protected
override
bool
HandleKeyDown(Key systemKey,
int
platformKeyCode)
{
return
base
.HandleKeyDown(systemKey, platformKeyCode);
}
}
I am afraid that we cannot change this behavior as this will introduce a breaking change.
We're sorry for the any inconvenience caused.
Kind regards,
Yana
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

protected override bool HandleKeyDown(Key systemKey, int platformKeyCode)
{
if(systemKey == Key.Space)
{
foreach(var item in Items)
{
var container = ItemContainerGenerator.ContainerFromItem(item) as RadComboBoxItem;
if(container.IsHighlighted)
{
var cb = container.FindChildByType<
CheckBox
>();
if(cb != null)
{
cb.IsChecked = !cb.IsChecked;
}
}
}
}
return base.HandleKeyDown(systemKey, platformKeyCode);
}
Thanks

The provided demo work's fine with single instance(on combobox on screen), But When i go for two combobox on same user control. It behavior get lost, only latest combox work's fine some time. (Bot combobox has checkbox functionality)
Can you suggest something.
Note that the project attached in this thread is just a sample implementation demonstrating the desired functionality - multiselection is actually not supported from the ComboBox. That is why it is highly possible to misbehave in a certain scenarios. What I can recommend you would be to check the AutoCompleteBox control, that support multiple selection out of the box and provides many other helpful features.
Hope this helps.
Regards,
Kalin
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.