Search results


The Localization library allows you to localize static text content of the NoRecordsTemplate and ActionFailureTemplate  properties according to the culture currently assigned to the DropDownList.

Locale key en-US (default)
NoRecordsTemplate No records found
ActionFailureTemplate The request failed

Loading translations

  • To download the locale definition of Blazor components, use this link.

  • After downloading the ej2-locale package, copy the ej2-locale folder with required local definition file into wwwroot folder.

  • By default, the ej2-locale package contains the localized text for static text present in components like button text, placeholder, tooltip, and more.

In the following sample, French culture is set to the DropDownList and no data is loaded. Hence, the NoRecordsTemplate property displays its text in French culture initially, and if the sample is run offline, the ActionFailureTemplate property displays its text appropriately.

@using Syncfusion.EJ2.Blazor.Data
@using Syncfusion.EJ2.Blazor.DropDowns

<EjsDropDownList TValue="string" Query="@Query" Placeholder="Select a customer">
    <EjsDataManager Url="" Adaptor="Adaptors.WebApiAdaptor" CrossDomain=true></EjsDataManager>
    <DropDownListFieldSettings Value="Country" Text="FirstName"></DropDownListFieldSettings>

@code {
    protected IJSRuntime JsRuntime { get; set; }

    protected override void OnAfterRender(bool firstRender)
    public string Query = "new['FirstName', 'Country']).take(6).requiresCount()";

The output will be as follows.