Class DropDownListPropertiesBuilder
Holds the DropDownList properties.
Inheritance
Inherited Members
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class DropDownListPropertiesBuilder : IPropertiesBuilder, IHtmlString
Constructors
DropDownListPropertiesBuilder()
Declaration
public DropDownListPropertiesBuilder()
DropDownListPropertiesBuilder(DropDownList)
Initializes a new instance of the DropDownListPropertiesBuilder class.
Declaration
public DropDownListPropertiesBuilder(DropDownList dropDownList)
Parameters
| Type | Name | Description |
|---|---|---|
| DropDownList | dropDownList | Accepts the DropDownList properties |
Fields
dropDownList
Initializes a new instance of the DropDownListPropertiesBuilder class.
Declaration
public DropDownList dropDownList
Field Value
| Type | Description |
|---|---|
| DropDownList |
Methods
AllowGrouping()
Declaration
[Obsolete("The AllowGrouping property has been deprecated. Binding the GroupBy field will automatically enable grouping")]
public DropDownListPropertiesBuilder AllowGrouping()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder |
AllowGrouping(Boolean)
Declaration
[Obsolete("The AllowGrouping property has been deprecated. Binding the GroupBy field will automatically enable grouping")]
public DropDownListPropertiesBuilder AllowGrouping(bool allowGrouping)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | allowGrouping | allowGrouping |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
AllowVirtualScrolling()
Loads the list data on demand via scrolling behavior to improve the application’s performance. There are two ways to load data which can be defined using “virtualScrollMode” property.
Declaration
public DropDownListPropertiesBuilder AllowVirtualScrolling()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
AllowVirtualScrolling(Boolean)
Loads the list data on demand via scrolling behavior to improve the application’s performance. There are two ways to load data which can be defined using “virtualScrollMode” property.with boolean argument.
Declaration
public DropDownListPropertiesBuilder AllowVirtualScrolling(bool allowVirtualScrolling)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | allowVirtualScrolling | allowVirtualScrolling |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
CascadeTo(String)
The cascading DropDownLists is a series of two or more DropDownLists in which each DropDownList is filtered according to the previous DropDownList’s value.with string argument.
Declaration
public DropDownListPropertiesBuilder CascadeTo(string cascadeTo)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | cascadeTo | cascadeTo |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
CaseSensitiveSearch()
Sets the case sensitivity of the search operation. It supports both enableFilterSearch and enableIncrementalSearch property.
Declaration
public DropDownListPropertiesBuilder CaseSensitiveSearch()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
CaseSensitiveSearch(Boolean)
Sets the case sensitivity of the search operation. It supports both enableFilterSearch and enableIncrementalSearch property with boolean argument.
Declaration
public DropDownListPropertiesBuilder CaseSensitiveSearch(bool caseSensitiveSearch)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | caseSensitiveSearch | caseSensitiveSearch |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
CheckAll()
To check all the items of the DropDownList widget. It works only when the showCheckbox property is set to true.
Declaration
[Obsolete("The CheckAll property has been deprecated. Use 'checkAll' method instead of CheckAll property")]
public DropDownListPropertiesBuilder CheckAll()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
CheckAll(Boolean)
To check all the items of the DropDownList widget. It works only when the showCheckbox property is set to true, with string argument.
Declaration
[Obsolete("The CheckAll property has been deprecated. Use 'checkAll' method instead of CheckAll property")]
public DropDownListPropertiesBuilder CheckAll(bool checkAll)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | checkAll | checkAll |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
ClientSideEvents(Action<DropDownListClientSideEventsBuilder>)
DropDownList ClientSide Events
Declaration
public DropDownListPropertiesBuilder ClientSideEvents(Action<DropDownListClientSideEventsBuilder> clientSideEvents)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<DropDownListClientSideEventsBuilder> | clientSideEvents |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder |
CssClass(String)
Dropdown widget’s style and appearance can be controlled based on 13 different default built-in themes.You can customize the appearance of the dropdown by using the cssClass property. You need to specify a class name in the cssClass property and the same class name is used before the class definitions wherever the custom styles are applied.with string argument.
Declaration
public DropDownListPropertiesBuilder CssClass(string customCssClass)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | customCssClass | cssClass |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
Datasource(DataSource)
This property is used to serve data from the data services based on the query provided. To bind the data to the dropdown widget, the dataSource property is assigned with the instance of the ej.DataManager.with object argument.
Declaration
public DropDownListPropertiesBuilder Datasource(DataSource dataSource)
Parameters
| Type | Name | Description |
|---|---|---|
| DataSource | dataSource | dataSource |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns object value |
Datasource(Action<DataSourceBuilder>)
This property is used to serve data from the data services based on the query provided. To bind the data to the dropdown widget, the dataSource property is assigned with the instance of the ej.DataManager.with array argument.
Declaration
public DropDownListPropertiesBuilder Datasource(Action<DataSourceBuilder> dataSource)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<DataSourceBuilder> | dataSource |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder |
Datasource(IEnumerable)
This property is used to serve data from the data services based on the query provided. To bind the data to the dropdown widget, the dataSource property is assigned with the instance of the ej.DataManager.with IEnumerable argument.
Declaration
public DropDownListPropertiesBuilder Datasource(IEnumerable dataSource)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.IEnumerable | dataSource |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder |
DelimiterChar(String)
Sets the separator when the multiSelectMode with delimiter option or checkbox is enabled with the dropdown. When you enter the delimiter value, the texts after the delimiter are considered as a separate word or query. The delimiter string is a single character and must be a symbol. Mostly, the delimiter symbol is used as comma (,) or semi-colon (;) or any other special character.with string argument.
Declaration
public DropDownListPropertiesBuilder DelimiterChar(string delimiterChar)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | delimiterChar | delimiterChar |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
DropDownListFields(Action<DropDownListFieldsBuilder>)
DropDownList fields
Declaration
public DropDownListPropertiesBuilder DropDownListFields(Action<DropDownListFieldsBuilder> fields)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<DropDownListFieldsBuilder> | fields | fields |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
EnableAnimation(Boolean)
The enabled Animation property uses the easeOutQuad animation to SlideDown and SlideUp the Popup list in 200 and 100 milliseconds, respectively.with boolean argument.
Declaration
public DropDownListPropertiesBuilder EnableAnimation(bool enableAnimation)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enableAnimation | enableAnimation |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
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
public DropDownListPropertiesBuilder Enabled()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
Enabled(Boolean)
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 with boolean argument.
Declaration
public DropDownListPropertiesBuilder Enabled(bool enabled)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enabled | enabled |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
EnableFilterSearch()
This property selects the item in the DropDownList when the item is entered in the Search textbox.
Declaration
public DropDownListPropertiesBuilder EnableFilterSearch()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
EnableFilterSearch(Boolean)
Declaration
public DropDownListPropertiesBuilder EnableFilterSearch(bool enableFilterSearch)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enableFilterSearch |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
EnableIncrementalSearch()
Specifies to perform incremental search for the selection of items from the DropDownList with the help of this property. This helps in selecting the item by using the typed character.
Declaration
public DropDownListPropertiesBuilder EnableIncrementalSearch()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder |
EnableIncrementalSearch(Boolean)
Specifies to perform incremental search for the selection of items from the DropDownList with the help of this property. This helps in selecting the item by using the typed character.with boolean argument.
Declaration
public DropDownListPropertiesBuilder EnableIncrementalSearch(bool enableIncrementalSearch)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enableIncrementalSearch | enableIncrementalSearch |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
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
public DropDownListPropertiesBuilder EnablePersistence()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
EnablePersistence(Boolean)
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.with boolean argument.
Declaration
public DropDownListPropertiesBuilder EnablePersistence(bool enablePersistence)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enablePersistence | enablePersistence |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
EnablePopupResize()
This enables the resize handler to resize the popup to any size.
Declaration
public DropDownListPropertiesBuilder EnablePopupResize()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
EnablePopupResize(Boolean)
This enables the resize handler to resize the popup to any size.with boolean argument.
Declaration
public DropDownListPropertiesBuilder EnablePopupResize(bool enablePopupResize)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enablePopupResize | enablePopupResize |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
EnableRTL()
Sets the DropDownList textbox direction from right to left align.
Declaration
public DropDownListPropertiesBuilder EnableRTL()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
EnableRTL(Boolean)
Sets the DropDownList textbox direction from right to left align with boolean argument.
Declaration
public DropDownListPropertiesBuilder EnableRTL(bool enableRTL)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enableRTL | enableRTL |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
EnableServerFiltering()
This property selects the item in the DropDownList when the item is entered in the Search textbox.
Declaration
public DropDownListPropertiesBuilder EnableServerFiltering()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
EnableServerFiltering(Boolean)
Declaration
public DropDownListPropertiesBuilder EnableServerFiltering(bool enableServerFiltering)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enableServerFiltering |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
EnableSorting()
This property is used to sort the Items in the DropDownList. By default, it sorts the items in an ascending order.
Declaration
public DropDownListPropertiesBuilder EnableSorting()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
EnableSorting(Boolean)
This property is used to sort the Items in the DropDownList. By default, it sorts the items in an ascending order.with boolean argument.
Declaration
public DropDownListPropertiesBuilder EnableSorting(bool enableSorting)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enableSorting | enableSorting |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
FilterType(SearchFilterType)
When the enableFilterSearch property value is set to true, the values in the DropDownList shows the items starting with or containing the key word/letter typed in the Search textbox.with string argument.
Declaration
public DropDownListPropertiesBuilder FilterType(SearchFilterType filterType)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchFilterType | filterType | filterType |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns enum value |
HeaderTemplate(String)
Used to create visualized header for dropdown items.with string argument.
Declaration
public DropDownListPropertiesBuilder HeaderTemplate(string headerTemplate)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | headerTemplate | headerTemplate |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
Height(String)
Defines the height of the DropDownList textbox.with string argument.
Declaration
public DropDownListPropertiesBuilder Height(string height)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | height | height |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
HtmlAttributes(IDictionary<String, Object>)
It sets the given HTML attributes for the DropDownList control such as ID, name, disabled, etc.
Declaration
public DropDownListPropertiesBuilder HtmlAttributes(IDictionary<string, object> itemHtmlAttributes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IDictionary<System.String, System.Object> | itemHtmlAttributes | htmlAttributes |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns object value |
ItemsCount(Int32)
Data can be fetched in the DropDownList control by using the DataSource, specifying the number of items.with integer argument.
Declaration
public DropDownListPropertiesBuilder ItemsCount(int itemsCount)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | itemsCount | itemsCount |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns number value |
ItemValue(String)
Specifies the item value for the DropDownList.
Declaration
public DropDownListPropertiesBuilder ItemValue(string itemValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | itemValue | itemValue |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
LoadOnDemand()
This property is used to Dropdownlist popup and list generation load on demand.
Declaration
public DropDownListPropertiesBuilder LoadOnDemand()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
LoadOnDemand(Boolean)
This property is used to Dropdownlist popup and list generation load on demand.
Declaration
public DropDownListPropertiesBuilder LoadOnDemand(bool loadOnDemand)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | loadOnDemand | loadOnDemand |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
Locale(String)
Different culture can be given locale property, Text present in Dropdownlist will be localized to respective culture.
Declaration
public DropDownListPropertiesBuilder Locale(string locale)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | locale |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder |
MaxPopupHeight(String)
Defines the maximum height of the suggestion box. This property restricts the maximum height of the popup when resize is enabled.with string argument.
Declaration
public DropDownListPropertiesBuilder MaxPopupHeight(string maxPopupHeight)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | maxPopupHeight | maxPopupHeight |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
MaxPopupWidth(String)
Defines the maximum width of the suggestion box. This property restricts the maximum width of the popup when resize is enabled.with string argument.
Declaration
public DropDownListPropertiesBuilder MaxPopupWidth(string maxPopupWidth)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | maxPopupWidth | maxPopupWidth |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
MinPopupHeight(String)
Defines the minimum height of the suggestion box. This property restricts the minimum height of the popup when resize is enabled.with string argument.
Declaration
public DropDownListPropertiesBuilder MinPopupHeight(string minPopupHeight)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | minPopupHeight | minPopupHeight |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
MinPopupWidth(String)
Defines the minimum height of the suggestion box. This property restricts the minimum height of the popup when resize is enabled.with string argument.
Declaration
public DropDownListPropertiesBuilder MinPopupWidth(string minPopupWidth)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | minPopupWidth | minPopupWidth |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
MultiSelectMode(MultiSelectModeTypes)
With the help of this property, you can make a single or multi selection with the DropDownList and display the text in two modes, delimiter and visual mode. In delimiter mode, you can separate the items by using the delimiter character such as comma (,) or semi-colon (;) or any other special character. In the visual mode, the items are showcased like boxes with close icon in the textbox.with string argument.
Declaration
public DropDownListPropertiesBuilder MultiSelectMode(MultiSelectModeTypes multiSelectMode)
Parameters
| Type | Name | Description |
|---|---|---|
| MultiSelectModeTypes | multiSelectMode | multiSelectMode |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns enum value |
PopupHeight(String)
Defines the height of the suggestion popup box in the DropDownList control.with string argument.
Declaration
public DropDownListPropertiesBuilder PopupHeight(string popupHeight)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | popupHeight | popupHeight |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
PopupWidth(String)
Defines the width of the suggestion popup box in the DropDownList control.with string argument.
Declaration
public DropDownListPropertiesBuilder PopupWidth(string popupWidth)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | popupWidth | popupWidth |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
Query(String)
with string argument.
Declaration
public DropDownListPropertiesBuilder Query(string query)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | query | query |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
ReadOnly()
Specifies that the DropDownList textbox values should be read-only.
Declaration
public DropDownListPropertiesBuilder ReadOnly()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
ReadOnly(Boolean)
Specifies that the DropDownList textbox values should be read-only.with boolean argument.
Declaration
public DropDownListPropertiesBuilder ReadOnly(bool readOnly)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | readOnly | readOnly |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
Render()
Renders this instance.
Declaration
public void Render()
SelectedIndex(Int32)
Specifies an item to be selected in the DropDownList.with integer argument.
Declaration
public DropDownListPropertiesBuilder SelectedIndex(int selectedIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | selectedIndex | selectedIndex |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns number value |
SelectedIndices(List<Int32>)
Specifies the selectedItems for the DropDownList.with array argument.
Declaration
public DropDownListPropertiesBuilder SelectedIndices(List<int> selectedIndices)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<System.Int32> | selectedIndices | selectedIndices |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns number value |
SelectedItemIndex(Int32)
The item to be selected by default using its index.with integer argument.
Declaration
[Obsolete("The SelectedItemIndex has been deprecated. Use 'SelectedIndex' instead of SelectedItemIndex")]
public DropDownListPropertiesBuilder SelectedItemIndex(int selectedItemIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | selectedItemIndex | selectedIndex |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns number value |
SelectedItems(List<Int32>)
The list of items to be selected by default using its index. To use this property allowMultiSelection should be enabled.with array argument.
Declaration
[Obsolete("The SelectedItems property has been deprecated. Use 'SelectedIndices' instead of SelectedItems")]
public DropDownListPropertiesBuilder SelectedItems(List<int> selectedItems)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<System.Int32> | selectedItems | selectedIndices |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns number value |
ShowCheckbox()
Selects multiple items in the DropDownList with the help of the checkbox control. To achieve this, enable the showCheckbox option to true.
Declaration
public DropDownListPropertiesBuilder ShowCheckbox()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
ShowCheckbox(Boolean)
Selects multiple items in the DropDownList with the help of the checkbox control. To achieve this, enable the showCheckbox option to true with boolean argument.
Declaration
public DropDownListPropertiesBuilder ShowCheckbox(bool showCheckbox)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | showCheckbox | showCheckbox |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
ShowPopupOnLoad()
DropDownList control is displayed with the popup seen.
Declaration
public DropDownListPropertiesBuilder ShowPopupOnLoad()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
ShowPopupOnLoad(Boolean)
DropDownList control is displayed with the popup seen with boolean argument.
Declaration
public DropDownListPropertiesBuilder ShowPopupOnLoad(bool showPopupOnLoad)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | showPopupOnLoad | showPopupOnLoad |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
ShowRoundedCorner()
DropDownList textbox displayed with the rounded corner style.
Declaration
public DropDownListPropertiesBuilder ShowRoundedCorner()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
ShowRoundedCorner(Boolean)
DropDownList textbox displayed with the rounded corner style with boolean argument.
Declaration
public DropDownListPropertiesBuilder ShowRoundedCorner(bool showRoundedCorner)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | showRoundedCorner | showRoundedCorner |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
SortOrder(SortOrder)
When the enableSorting property value is set to true, this property helps to sort the items either in ascending or descending order.with string argument.
Declaration
public DropDownListPropertiesBuilder SortOrder(SortOrder sortOrder)
Parameters
| Type | Name | Description |
|---|---|---|
| SortOrder | sortOrder | sortOrder |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns enum value |
TargetID(String)
Specifies the targetID for the DropDownList’s items.with string argument.
Declaration
public DropDownListPropertiesBuilder TargetID(string targetID)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | targetID | targetID |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
Template(String)
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.with string argument.
Declaration
public DropDownListPropertiesBuilder Template(string template)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | template | template |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
Text(String)
Defines the text value that is displayed in the DropDownList textbox.with string argument.
Declaration
public DropDownListPropertiesBuilder Text(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text | text |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
ToHtmlString()
Returns an HTML-encoded string.
Declaration
public string ToHtmlString()
Returns
| Type | Description |
|---|---|
| System.String |
UncheckAll()
Unchecks all the checked list items. It is dependent on showCheckbox property.
Declaration
[Obsolete("The UncheckAll Property has been deprecated. Use 'uncheckAll' method instead of UncheckAll Property")]
public DropDownListPropertiesBuilder UncheckAll()
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
UncheckAll(Boolean)
Unchecks all the checked list items. It is dependent on showCheckbox property.with boolean argument.
Declaration
[Obsolete("The UncheckAll Property has been deprecated. Use 'uncheckAll' method instead of UncheckAll Property")]
public DropDownListPropertiesBuilder UncheckAll(bool uncheckAll)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | uncheckAll | uncheckAll |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns boolean value |
ValidationMessage(Action<DropDownListValidationMessageBuilder>)
Sets the jQuery validation error message in the DropDownList with object argument.
Declaration
public DropDownListPropertiesBuilder ValidationMessage(Action<DropDownListValidationMessageBuilder> validationMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<DropDownListValidationMessageBuilder> | validationMessage |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder |
ValidationMessage(Dictionary<String, Object>)
Sets the jQuery validation error message in the DropDownList with dictionary argument.
Declaration
public DropDownListPropertiesBuilder ValidationMessage(Dictionary<string, object> validationMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.Dictionary<System.String, System.Object> | validationMessage | validationMessage |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns object value |
ValidationRules(Action<DropDownListValidationRuleBuilder>)
Sets the jquery validation rules in the Dropdownlist with object argument.
Declaration
public DropDownListPropertiesBuilder ValidationRules(Action<DropDownListValidationRuleBuilder> validationRule)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<DropDownListValidationRuleBuilder> | validationRule |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder |
ValidationRules(Dictionary<String, Object>)
Sets the jquery validation rules in the Dropdownlist with dictionary argument.
Declaration
public DropDownListPropertiesBuilder ValidationRules(Dictionary<string, object> validationRule)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.Dictionary<System.String, System.Object> | validationRule | validationRules |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns object value |
Value(String)
Specifies the value (text content) for the DropDownList control.with string argument.
Declaration
public DropDownListPropertiesBuilder Value(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | value |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
VirtualScrollMode(VirtualScrollMode)
The Virtual Scrolling feature is used to display a large amount of records in the DropDownList, that is, when scrolling, an Ajax request is sent to fetch some amount of data from the server dynamically. To achieve this scenario with DropDownList, set the allowVirtualScrolling to true. You can set the itemsCount property that represents the number of items to be fetched from the server on every Ajax request.with string argument.
Declaration
public DropDownListPropertiesBuilder VirtualScrollMode(VirtualScrollMode virtualScrollMode)
Parameters
| Type | Name | Description |
|---|---|---|
| VirtualScrollMode | virtualScrollMode | virtualScrollMode |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns enum value |
WatermarkText(String)
Specifies a short hint that describes the expected value of the DropDownList control.with string argument.
Declaration
public DropDownListPropertiesBuilder WatermarkText(string watermarkText)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | watermarkText | watermarkText |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |
Width(String)
Defines the width of the DropDownList textbox.with string argument.
Declaration
public DropDownListPropertiesBuilder Width(string width)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | width | width |
Returns
| Type | Description |
|---|---|
| DropDownListPropertiesBuilder | This method returns string value |