Blazor | ComponentOne
Controls / Input Controls / ComboBox / Editing
In This Topic
    In This Topic

    C1ComboBox can be used as an editable text input control with auto-suggest feature that matches the typed text to the list of items. By default, the ComboBox control is non-editable. However, you can make it editable using the IsEditable property. This is a Boolean property which allows the users to modify their input by enabling/disabling editing in the ComboBox control.

    ComboBox Editing

    To make the ComboBox editable, use the following code. The following example uses the example created in the Quick Start section.

    Copy Code
    @using C1.Blazor.Input
    <C1ComboBox ItemsSource="countries" T="Country" IsEditable="true" Text="Select a Country" />
        IEnumerable<Country> countries;
        protected override void OnInitialized()
            countries = Country.GetCountries();