make drop-down lists smaller

1 Answer 59 Views
DropDownList MultiSelect
AP
Top achievements
Rank 1
Iron
Iron
Veteran
AP asked on 22 Sep 2023, 11:33 AM | edited on 22 Sep 2023, 11:35 AM

I'm upgrading a project from 2021.2.511 to 2023.2.829 and I have a page which is extremely data heavy. Using the  .Size(ComponentSize.Small) option still results in a much larger drop-down list than before.

How can I reduce the size of these drop-downs further? In the old version, they simply inherited the font-size of the parent div.

 

This also applies to the multiselect controls as well

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 27 Sep 2023, 08:13 AM | edited on 04 Oct 2023, 08:33 AM

Hello Andrew,

In version 2023.2.829 the theme applies the respective font-size value based on the specified Size. "Small" is the smallest Size value of the DropDownList and MultiSelect, so if you want to go even further and make them appear smaller, you can override the default styles. See this example: https://netcorerepl.telerik.com/GRlEESks33U7S0KH17

Below the MultiSelect's declaration there is a CSS rule that overrides the font-size of both the DropDownList and the MultiSelect and makes them appear smaller:

<style>
    .k-dropdownlist.k-picker,
    .k-multiselect.k-input,
    .k-multiselect .k-chip-label {
        font-size: 12px;
    }
</style>

Regards,
Ivan Danchev
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages. If you're new to the Telerik family, be sure to check out our getting started resources, as well as the only REPL playground for creating, saving, running, and sharing server-side code.

AP
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 03 Oct 2023, 09:54 AM

Thanks for this. This changes the text size but not the overall size of the controls and also not the size of the text when the list is displayed.  I attach an image (an extreme example with very small text, but it illustrates the issue).

How can I size the complete control as it was possible to do before the changes to how styling works were implemented?

AP
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 03 Oct 2023, 10:10 AM

I have now raised a support call about this, as I need a quick resolution
Tags
DropDownList MultiSelect
Asked by
AP
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Ivan Danchev
Telerik team
Share this question
or