Class DropDownListPropertiesBase
Inheritance
Inherited Members
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class DropDownListPropertiesBase : PropertiesBase
Constructors
DropDownListPropertiesBase()
Initializes a new instance of the DialogPropertiesBuilder class.
Declaration
public DropDownListPropertiesBase()
Properties
AllowVirtualScrolling
The Virtual Scrolling(lazy loading) feature is used to display a large amount of data that you require without buffering the entire load of a huge database records in the DropDownList, that is, when scrolling, an AJAX request is sent to fetch some amount of data from the server dynamically.
Declaration
[JsonProperty("allowVirtualScrolling")]
public bool AllowVirtualScrolling { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
DelimiterChar
Sets the separator when the multiSelectMode with delimiter option or checkbox is enabled with the dropdown.
Declaration
[JsonProperty("delimiterChar")]
public string DelimiterChar { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Enabled
This property is used to indicate whether the DropDownList control responds to the user interaction or not. By default, the control is in the enabled mode and you can disable it by setting it to false.
Declaration
[JsonProperty("enabled")]
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
EnableMultiSelect
Enables the dropdownlist multi selection
Declaration
[JsonProperty("enableMultiSelect")]
public bool EnableMultiSelect { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
EnablePersistence
Saves the current model value to the browser cookies for state maintenance. While refreshing the DropDownList control page, it retains the model value and it is applied from the browser cookies.
Declaration
[JsonProperty("enablePersistence")]
public bool EnablePersistence { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ItemsCount
Data can be fetched in the DropDownList control by using the DataSource, specifying the number of items.
Declaration
[JsonProperty("itemsCount")]
public int ItemsCount { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
PopupHeight
Defines the height of the suggestion popup box in the DropDownList control.
Declaration
[JsonProperty("popupHeight")]
public string PopupHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
PopupWidth
Defines the width of the suggestion popup box in the DropDownList control.
Declaration
[JsonProperty("popupWidth")]
public string PopupWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ReadOnly
Specifies that the DropDownList textbox values should be read-only.
Declaration
[JsonProperty("readOnly")]
public bool ReadOnly { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
SelectedItemIndex
Specifies an item to be selected in the DropDownList.
Declaration
[JsonProperty("selectedItemIndex")]
public int SelectedItemIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
TargetId
Specifies the targetID for the DropDownList’s items.
Declaration
[JsonProperty("targetId")]
public string TargetId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
TemplateId
By default, you can add any text or image to the DropDownList item. To customize the item layout or to create your own visualized elements, you can use this template support.
Declaration
[JsonProperty("templateId")]
public string TemplateId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
WaterMarkText
Specifies a short hint that describes the expected value of the DropDownList control.
Declaration
[JsonProperty("waterMarkText")]
public string WaterMarkText { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |