How to set a Silverlight4 ComboBox style to RadComboBox

2 posts, 0 answers
  1. Saibal
    Saibal avatar
    3 posts
    Member since:
    Jul 2011

    Posted 16 Dec 2011 Link to this post


    Indeed Telerik RadComboBox is one of the best 3rd party tool we use. In fact it works much better that Microsoft's Silverlight4's own ComboBox.

    I am facing an issue:

    I need to set an existing ComboBox (Silverlight4) style to a RadComboBox. But that does not work.

    say I have a defined stye "<Style x:Key="ComboBoxStyle1" TargetType="ComboBox">" and using that to my existing Silverlight ComboBox Control (<ComboBox Grid.Row="1" Grid.Column="2"  Name="cmbCompany" Style="{StaticResource ComboBoxStyle1}">).

    But, Now want to use a Telerik RadComboBox for showing the products.  

    Now, I have defined another Style for the RadComboBox
    [<Style x:Key="ComboBoxStyleRadCombo" TargetType="telerik:RadComboBox">] with the same set of color specification as in the earlier style.

    and using like :
    (<telerik:RadComboBox Grid.Row="2" Grid.Column="1"  Name="cmbProducts" Style="{StaticResource ComboBoxStyleRadCombo}">) 

    But it is working completely differently. Color schemes are going hey where.

    Can anyone please help me in this regards.
  2. Dani
    Dani avatar
    848 posts

    Posted 19 Dec 2011 Link to this post

    Hello Saibal,

    Default styles as well as the control templates for native MS ComboBox and Telerik RadComboBox are different. Therefore when trying to make one of them have the same look and feel as the other one, you will have to manually modify the style for the control.

    When trying to customize RadComboBox to look as your customized ComboBox control, please take into consideration the fact that RadComboBox has a default Office Black theme, which is reflected by a ButtonChrome control inside the template of RadComboBox. You may need to generate and customize the button chrome as well. Also, remember to make your modifications both on the Editable and NonEditable ControlTemplates of RadComboBox.

    I hope this helps.

    Best wishes,
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft R3 2016 release webinar banner
Back to Top