Add the ability to make the drop down list expanded contents wider than the closed control, or just automatically determine appropriate width (doesn't always work well for very long text fields, so you need both properties).
Hello Walter,
This feature is available - you can set the PopupWidth to "auto" which will appear as the style="width:auto" CSS rule in the DOM, and will let the popup be as wide as its contents.
Here's an example:
@using Telerik.Blazor.Components.DropDownList
<TelerikDropDownList Data="@MyList" @bind-Value="MyItem" PopupWidth="auto">
</TelerikDropDownList>
@code {
protected List<string> MyList = new List<string>() { "first", "second", "lorem ipsum dolor sit amet", "third" };
protected string MyItem { get; set; } = "second";
}
Here's also a data source for a wide item:
protected List<string> MyList = new List<string>() { "first", "second", "lorem ipsum dolor sit amet lorem ipsum dolor sit amet lorem ipsum dolor sit amet", "third" };
Regards,
Marin Bratanov
Progress Telerik