Cannot resize combo box arrow

1 Answer 119 Views
ComboBox
Omar
Top achievements
Rank 3
Iron
Iron
Iron
Omar asked on 17 Aug 2022, 03:39 AM

Hi,

When I change the font for the combo box the arrow icon size does not change.

How to change the arrow size?

Thanks in advance,

Omar

Omar
Top achievements
Rank 3
Iron
Iron
Iron
commented on 18 Aug 2022, 06:59 PM

Anyone can help me, please.

1 Answer, 1 is accepted

Sort by
1
Accepted
Valentin Dragnev
Telerik team
answered on 19 Aug 2022, 08:26 AM

Hello Omar,

 

When using CSS to change the font of the ComboBox you need to write more specific CSS selectors. 

Here is one example that changes the arrow size of the ComboBox. 

ComboBox markup definition (be sure to use RenderMode="Lightweight"): 

<telerik:RadComboBox ID="RadComboBox1" runat="server" RenderMode="Lightweight">
    <Items>
        <telerik:RadComboBoxItem Text="Item 1" />
        <telerik:RadComboBoxItem Text="Item 2" />
        <telerik:RadComboBoxItem Text="Item 3" />
        <telerik:RadComboBoxItem Text="Item 4" />
    </Items>
</telerik:RadComboBox>

Example of a more specific CSS that will override the built-in styles:

<style>
    html body .RadComboBox .p-icon:before {
        font-size: 56px;
    }
</style>


You might have a different structure that will not work with my CSS example therefore, I would suggest inspecting the HTML elements and the styles applied to them. You can follow the suggestions in the first two points of the Improve Your Debugging Skills with Chrome DevTools blog post explaining how to inspect the generated HTML and check the applied styles for various elements. 

Once you know the styles you need to override, you can use the same style selector and add "html body " in front of it to make it more specific, "stronger". More on CSS specificity you can find here: 

To learn more about CSS styling and using the Browser's developer tools, you may find the following videos useful: 

 

I hope this will be helpful. 

 

Regards,
Valentin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Omar
Top achievements
Rank 3
Iron
Iron
Iron
commented on 19 Aug 2022, 05:45 PM

Works like a charm.

Many thanks Valentin.

Tags
ComboBox
Asked by
Omar
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Valentin Dragnev
Telerik team
Share this question
or