menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SearchType - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SearchType

    Specifies the available search modes used while filtering.

    Inheritance
    System.Object
    SearchType
    Namespace: Syncfusion.Blazor.DropDowns
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class SearchType : Enum
    Remarks

    This enum defines how item values are compared to the typed search text in filter-enabled dropdown controls.

    Examples
    SearchType search = SearchType.StartsWith;

    Fields

    Equal

    Allows filtering by matching only the items that are equal to the typed value.

    Declaration
    public const SearchType Equal
    Field Value
    Type Description
    SearchType

    Applies strict equality-based filtering.

    Remarks

    Use when only exact matches are valid search results.

    Examples
    SearchType search = SearchType.Equal;

    StartsWith

    Allows filtering by searching only from the start of the item value (prefix match).

    Declaration
    public const SearchType StartsWith
    Field Value
    Type Description
    SearchType

    Applies prefix-only filtering to item values.

    Remarks

    Common in autocomplete and dropdown search scenarios.

    Examples
    SearchType search = SearchType.StartsWith;
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved