menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataItems<TVal> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataItems<TVal>

    Represents a data item with text and value properties.

    Inheritance
    System.Object
    DataItems<TVal>
    Namespace: Syncfusion.Blazor.DropDowns
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DataItems<TVal> : Object
    Type Parameters
    Name Description
    TVal

    The type of the value property.

    Constructors

    DataItems()

    Declaration
    public DataItems()

    Properties

    Text

    Gets or sets the text of the data item.

    Declaration
    public object Text { get; set; }
    Property Value
    Type Description
    System.Object

    An object representing the display text. The default value is null.

    Value

    Gets or sets the value of the data item.

    Declaration
    public TVal Value { get; set; }
    Property Value
    Type Description
    TVal

    A TVal representing the item value. The default value is the default value of TVal.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved