Declined
Last Updated: 08 Feb 2023 23:18 by Ted
Marcel
Created on: 11 Jun 2019 11:59
Category: DropDownList
Type: Feature Request
5
PopupHeight to default to "auto"
 if "PopupHeight" is not specified it should take "Auto" as the default value instead of a static height in px

This will allow the dropdown to be large enough to fit a reasonable number of items without a scrollbar. Alternatively, you could limit it through a pixel value you can set, or through the MaxPopupHeight property if it gets implemented: https://feedback.telerik.com/blazor/1412653-maxpopupheight.

2 comments
Ted
Posted on: 08 Feb 2023 23:18
This doesn't really help. Specifying "auto" should fit the popup BOTH minimum height and maximum height so that the popup does not extend below the bottom of its parent container. Currently if there are many items in the popup, setting "auto" for the height extends the popup below the bottom of its container so that items are not visible and also there is no scroll bar!! This is UX 101, so please put a fix in for this!
ADMIN
Marin Bratanov
Posted on: 18 Oct 2019 15:50

Hello,

At the moment, there are no plans to change the defaults. You can, however, very easily set the height to auto:

<TelerikDropDownList Data="@MyList" @bind-Value="MyItem" PopupHeight="auto">
</TelerikDropDownList>

@code {
    protected List<string> MyList = new List<string>() { "first", "second", "third" };

    protected string MyItem { get; set; } = "second";
}

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor