Kendo Dropdown list: number of items to be listed when expanded.

1 Answer 350 Views
DropDownList
puru
Top achievements
Rank 1
puru asked on 31 Aug 2023, 05:45 PM | edited on 31 Aug 2023, 05:46 PM

Hi All,

Kendo dropdown list by default shows 6 items when expanded (clicked on down arrow). How can i increase the number of items to be displayed?

Need to show at least 15 items instead of 6. Also need to change the height of list items so that more items can be shown.

Tried changing the height, but it increased the height of dropdown list itself instead of the slider that pops out when clicked.

Thanks!!!

1 Answer, 1 is accepted

Sort by
0
Tsvetelina
Telerik team
answered on 04 Sep 2023, 11:37 AM

Hi Puru,

To change the DropDown's options list height, use the listHeight property. Furthermore, to style the list items, use the PopupSettings' popupClass property and apply the desired styles to the <li> elements. Please refer to the following Stackblitz example demonstrating both suggestions:

https://stackblitz.com/edit/angular-r8wuq3-m35fwd

Please keep in mind that encapsulation should be set to ViewEncapsulation.None to apply the style correctly.

I hope this helps.

Regards,
Tsvetelina
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Rose Jehilan
Top achievements
Rank 1
commented on 10 Oct 2024, 09:11 PM

How to set the listHeight in MVC dropdown list control?
Alexander
Telerik team
commented on 15 Oct 2024, 07:31 AM

Hi Rose Jehilan,

This forum post was brought to my attention by our fellow developer subject matter Angular experts. So please allow me to chime in within this discussion.

I noticed that you have opened a separate ticket thread for the Telerik UI for ASP.NET Core DropDownList:

I strongly advocate that we continue our discussion there, as the subject matter is revolved within the realm of the Telerik UI for ASP.NET Core, rather than the Kendo UI for Angular suite.

Tags
DropDownList
Asked by
puru
Top achievements
Rank 1
Answers by
Tsvetelina
Telerik team
Share this question
or