This is a migrated thread and some comments may be shown as answers.

RadComboBox default item

3 Answers 201 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 07 Jul 2014, 04:20 PM
Hello all, my first post here.

I am using the Telerik controls in my Silverlight application.  I have a combo box with items that have been bound to the control and that appears to be working fine.  When the UI is rendered I see a small square box on that control and when I click on that combo box the top value shown is blank with a checkbox next to it.  I would like the combo box to not have any small box on the control itself and I would like to only show checkboxes, when interacting with the control, that have values.

I have posted my code below and attached a couple of photos to show the issue.

<telerik:RadComboBox.ItemTemplate>
  <DataTemplate>
    <Checkbox IsChecked="{Binding}" Content="{Binding}" />
  </DataTemplate>
</telerik:RadComboBox.ItemTemplate>



3 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 09 Jul 2014, 07:59 AM
Hi Brian,

What I can suggest you would be to also implement a SelectionBoxTemplate which will allow to display the selected item differently.

Hope this helps.

Regards,
Kalin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Brian
Top achievements
Rank 1
answered on 09 Jul 2014, 07:45 PM
Thanks for the response Kalin.  The SelectionBoxTemplate is a useful example but not at all really what I am looking for.
0
Kalin
Telerik team
answered on 11 Jul 2014, 08:06 AM
Hello Brian,

Could you please share some more details on the exact scenario? The SelectionBoxTemplate will allow you to hide the CheckBox from the SelectedItem. Or you need to sometimes show it (when the selected item has some particular value) and hide it sometimes?

I'm looking forward to your reply.

Regards,
Kalin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
ComboBox
Asked by
Brian
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Brian
Top achievements
Rank 1
Share this question
or