ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class ListBox

    Inheritance
    System.Object
    TagHelper
    EJTagHelper
    ListBox
    Inherited Members
    EJTagHelper.GetList()
    EJTagHelper.GetSerializedProperties()
    EJTagHelper.GetScriptString()
    EJTagHelper.GetHtmlAttrString(IDictionary<String, Object>)
    EJTagHelper.Id
    EJTagHelper.IsChild
    EJTagHelper.IsComplex
    EJTagHelper.IsCollection
    EJTagHelper.ParentPropertyName
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.EJ2.DropDowns
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class ListBox : EJTagHelper

    Constructors

    ListBox()

    Declaration
    public ListBox()

    Properties

    ActionBegin

    Triggers before fetching data from the remote server.

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

    ActionComplete

    Triggers after data is fetched successfully from the remote server.

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

    ActionFailure

    Triggers when the data fetch request from the remote server fails.

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

    AllowDragAndDrop

    If 'allowDragAndDrop' is set to true, then you can perform drag and drop of the list item. ListBox contains same 'scope' property enables drag and drop between multiple ListBox.

    Declaration
    [HtmlAttributeName("allowDragAndDrop")]
    public bool AllowDragAndDrop { get; set; }
    Property Value
    Type Description
    System.Boolean

    AllowFiltering

    To enable the filtering option in this component. Filter action performs when type in search box and collect the matched item through filtering event. If searching character does not match, noRecordsTemplate property value will be shown.

    Declaration
    [HtmlAttributeName("allowFiltering")]
    public bool AllowFiltering { get; set; }
    Property Value
    Type Description
    System.Boolean

    BeforeDrop

    Triggers before dropping the list item on another list item.

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

    BeforeItemRender

    Triggers while rendering each list item.

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

    Change

    Triggers while select / unselect the list item.

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

    ClassName

    Declaration
    protected override string ClassName { get; }
    Property Value
    Type Description
    System.String
    Overrides
    EJTagHelper.ClassName

    Created

    Triggers when the component is created.

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

    CssClass

    Sets the CSS classes to root element of this component, which helps to customize the complete styles.

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

    DataBound

    Triggers when data source is populated in the list.

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

    DataSource

    Accepts the list items either through local or remote service and binds it to the component. It can be an array of JSON Objects or an instance of DataManager.

    Declaration
    [HtmlAttributeName("dataSource")]
    public object DataSource { get; set; }
    Property Value
    Type Description
    System.Object

    Destroyed

    Triggers when the component is destroyed.

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

    Drag

    Triggers while dragging the list item.

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

    DragStart

    Triggers after dragging the list item.

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

    Drop

    Triggers before dropping the list item on another list item.

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

    Enabled

    Specifies a value that indicates whether the component is enabled or not.

    Declaration
    [HtmlAttributeName("enabled")]
    public bool Enabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    EnablePersistence

    Enable or disable persisting component's state between page reloads. If enabled, following list of states will be persisted.

    1. value
    Declaration
    [HtmlAttributeName("enablePersistence")]
    public bool EnablePersistence { get; set; }
    Property Value
    Type Description
    System.Boolean

    EnableRtl

    Enable or disable rendering component in right to left direction.

    Declaration
    [HtmlAttributeName("enableRtl")]
    public bool EnableRtl { get; set; }
    Property Value
    Type Description
    System.Boolean

    Fields

    The fields property maps the columns of the data table and binds the data to the component. text - Maps the text column from data table for each list item. value - Maps the value column from data table for each list item. iconCss - Maps the icon class column from data table for each list item. groupBy - Group the list items with it's related items by mapping groupBy field.

    Declaration
    [HtmlAttributeName("fields")]
    public ListBoxFieldSettings Fields { get; set; }
    Property Value
    Type Description
    ListBoxFieldSettings

    FilterBarPlaceholder

    Accepts the value to be displayed as a watermark text on the filter bar.

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

    Filtering

    Triggers on typing a character in the component.

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

    FilterType

    Determines on which filter type, the component needs to be considered on search action. The FilterType and its supported data types are

    Declaration
    [HtmlAttributeName("filterType")]
    public FilterType FilterType { get; set; }
    Property Value
    Type Description
    FilterType

    Height

    Sets the height of the ListBox component.

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

    HtmlAttributes

    Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.

    Declaration
    [HtmlAttributeName("htmlAttributes")]
    public object HtmlAttributes { get; set; }
    Property Value
    Type Description
    System.Object

    IsFor

    Declaration
    protected override bool IsFor { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    EJTagHelper.IsFor

    ItemTemplate

    Accepts the template design and assigns it to each list item present in the popup. We have built-in template engine

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

    Locale

    Overrides the global culture and localization value for this component. Default global culture is 'en-US'.

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

    MaximumSelectionLength

    Sets limitation to the value selection. based on the limitation, list selection will be prevented.

    Declaration
    [HtmlAttributeName("maximumSelectionLength")]
    public double MaximumSelectionLength { get; set; }
    Property Value
    Type Description
    System.Double

    NameSpace

    Declaration
    protected override string NameSpace { get; }
    Property Value
    Type Description
    System.String
    Overrides
    EJTagHelper.NameSpace

    NoRecordsTemplate

    Accepts the template design and assigns it to popup list of component when no data is available on the component.

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

    Query

    Accepts the external Query which will execute along with the data processing.

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

    Scope

    Defines the scope value to group sets of draggable and droppable ListBox. A draggable with the same scope value will be accepted by the droppable.

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

    Select

    Triggers when an item in the popup is selected by the user either with mouse/tap or with keyboard navigation.

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

    SelectionSettings

    Specifies the selection mode and its type.

    Declaration
    [HtmlAttributeName("selectionSettings")]
    public ListBoxSelectionSettings SelectionSettings { get; set; }
    Property Value
    Type Description
    ListBoxSelectionSettings

    SortOrder

    Specifies the sortOrder to sort the data source. The available type of sort orders are None - The data source is not sorting. Ascending - The data source is sorting with ascending order. Descending - The data source is sorting with descending order.

    Declaration
    [HtmlAttributeName("sortOrder")]
    public object SortOrder { get; set; }
    Property Value
    Type Description
    System.Object

    TagName

    Declaration
    protected override string TagName { get; }
    Property Value
    Type Description
    System.String
    Overrides
    EJTagHelper.TagName

    ToolbarSettings

    Specifies the toolbar items and its position.

    Declaration
    [HtmlAttributeName("toolbarSettings")]
    public ListBoxToolbarSettings ToolbarSettings { get; set; }
    Property Value
    Type Description
    ListBoxToolbarSettings

    Value

    Sets the specified item to the selected state or gets the selected item in the ListBox.

    Declaration
    [HtmlAttributeName("value")]
    public object Value { get; set; }
    Property Value
    Type Description
    System.Object
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved