menu

ASP.NET MVC

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DropDownListItem

    Show / Hide Table of Contents

    Class DropDownListItem

    Class DropDownListItem.

    Inheritance
    System.Object
    CommonControl
    DropDownListItem
    Implements
    System.Web.UI.INamingContainer
    System.Web.UI.IPostBackEventHandler
    System.Web.UI.IPostBackDataHandler
    System.Web.UI.IUrlResolutionService
    Inherited Members
    CommonControl.RaisePostBackEvent(String)
    CommonControl.PostBackEventHandler(String, Dictionary<String, Object>)
    CommonControl.LoadViewState(Object)
    CommonControl.OnInit(EventArgs)
    CommonControl.OnLoad(EventArgs)
    CommonControl.UpdateServerModel(Dictionary<String, Object>)
    CommonControl.GetDependentFiles()
    CommonControl.Render(HtmlTextWriter)
    Namespace: Syncfusion.JavaScript.Web
    Assembly: Syncfusion.EJ.Web.dll
    Syntax
    public class DropDownListItem : CommonControl, INamingContainer, IPostBackEventHandler, IPostBackDataHandler, IUrlResolutionService

    Constructors

    DropDownListItem()

    Declaration
    public DropDownListItem()

    Properties

    Category

    Gets or sets the category.

    Declaration
    [JsonProperty("Category")]
    public string Category { get; set; }
    Property Value
    Type Description
    System.String

    The category.

    ContentTemplate

    Gets or sets the content template for DropDownList control.

    Declaration
    public HtmlGenericControl ContentTemplate { get; set; }
    Property Value
    Type Description
    System.Web.UI.HtmlControls.HtmlGenericControl

    The content template.

    HtmlAttributes

    Gets or sets the HTML attributes.

    Declaration
    [JsonProperty("HtmlAttributes")]
    public string HtmlAttributes { get; set; }
    Property Value
    Type Description
    System.String

    The HTML attributes.

    ID

    Gets or sets the programmatic identifier assigned to the server control.

    Declaration
    [JsonProperty("ID")]
    public override string ID { get; set; }
    Property Value
    Type Description
    System.String

    The identifier.

    ImageAttributes

    Gets or sets the image attributes.

    Declaration
    [JsonProperty("ImageAttributes")]
    public string ImageAttributes { get; set; }
    Property Value
    Type Description
    System.String

    The image attributes.

    ImageUrl

    Gets or sets the image URL.

    Declaration
    [JsonProperty("ImageUrl")]
    public string ImageUrl { get; set; }
    Property Value
    Type Description
    System.String

    The image URL.

    Items

    Gets the items.

    Declaration
    public List<DropDownListItem> Items { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<DropDownListItem>

    The items.

    Selected

    Gets or sets the selected.

    Declaration
    [JsonProperty("Selected")]
    public string Selected { get; set; }
    Property Value
    Type Description
    System.String

    The selected.

    SpriteCssClass

    Gets or sets the sprite CSS class.

    Declaration
    [JsonProperty("SpriteCssClass")]
    public string SpriteCssClass { get; set; }
    Property Value
    Type Description
    System.String

    The sprite CSS class.

    TableName

    Gets or sets the name of the table.

    Declaration
    [JsonProperty("TableName")]
    public string TableName { get; set; }
    Property Value
    Type Description
    System.String

    The name of the table.

    Text

    Gets or sets the text.

    Declaration
    [JsonProperty("Text")]
    public string Text { get; set; }
    Property Value
    Type Description
    System.String

    The text.

    Value

    Gets or sets the value.

    Declaration
    [JsonProperty("Value")]
    public string Value { get; set; }
    Property Value
    Type Description
    System.String

    The value.

    Methods

    CreateChildControls()

    Create the child controls

    Declaration
    protected override void CreateChildControls()

    Implements

    System.Web.UI.INamingContainer
    System.Web.UI.IPostBackEventHandler
    System.Web.UI.IPostBackDataHandler
    System.Web.UI.IUrlResolutionService

    See Also

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