Search code examples
c#telerikblazor

Blazor Telerik DropDown List does not display as expected


My Blazor dropdown list is coded as below:

<TelerikDropDownList Data="@BkAccounts" TextField="@(nameof(BkAccounts.DisplayField))" ValueField="@(nameof(BkAccounts.BIC))" Value=1 Width = "250"></TelerikDropDownList>

It displays as is the attached screenshot.

Basic displaying

when I click on it:

The 250 width correctly applied on what is displayed when I click on the DDL, but the basic displaying does not seem to apply the correct width?? What did I miss?


Solution

  • Noob mistake!

    Width = "250"
    

    must be changed to ----->

    Width = "250px"