Auto height for dropdown with dynamic items list

1 Answer 256 Views
DropDownList
Subodh Gupta
Top achievements
Rank 2
Subodh Gupta asked on 07 Aug 2023, 03:39 PM

I have a Kendo dropdown list in my project, data of which is dependent from some external conditions and can be changed while widget is already constructed.

When you have 1 item initially and you open dropdown - height for the suggestions popup is fine and covers this 1 item.

When you later change number of items to 6 for example and try to open it - height is still covers only one item and creates a scroll instead of just expand to all available area.

Here is a Dojo example of how it works: https://dojo.telerik.com/oGubaqiX

You should open dropdown, then hit "Change DS" button and the open dropdown again.

As you can see the behavior is absolutely wrong.

How can I change it or what am I doing wrong?

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 10 Aug 2023, 12:08 PM

Hi Subodh,

There is a known one and below you will find a link to the item in our official Feedback Portal:

https://feedback.telerik.com/kendo-jquery-ui/1618158-the-dropdownlist-does-not-change-its-popup-height-when-items-added-removed-from-its-source

In the portal, you can also see a possible workaround for this issue, which you can try to implement in your scenario.

Please let me know if further questions or comments about this matter arise.

Regards,
Neli
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
Tags
DropDownList
Asked by
Subodh Gupta
Top achievements
Rank 2
Answers by
Neli
Telerik team
Share this question
or