Constructor Summary
| Public Constructor | ||
| public |
constructor(id: String, options: Object) Constructor |
|
Method Summary
| Public Methods | ||
| public |
enable or disable the DropdownList |
|
| public |
Toggles the readonly state of the DropdownList. |
|
| public |
setDataSource(array: String[]): Null Sets the dataSource of an existing DropDownList and rebinds it. |
|
| public |
Gets or sets the value of the DropdownList. |
|
Public Constructors
public constructor(id: String, options: Object) source
Constructor
Params:
| Name | Type | Attribute | Description |
| id | String | dropdownlist id |
|
| options | Object | option params |
|
| options.data | String[] | The data source of the widget, changes of the data source will be reflected in the widget |
|
| options.change | function(e: Object): null | callback function will run on value change event |
|
| options.select | function(e: Object): null | callback function will run on the popup is selected |
|
| options.dataBound | function(e: Object): null | callback function will run on the widget is bound to data from its data source |
Public Methods
public enable(flag: Boolean): Null source
enable or disable the DropdownList
Params:
| Name | Type | Attribute | Description |
| flag | Boolean | if false, DropdownList will be disabled |
Return:
| Null |
public readonly(flag: Boolean): Null source
Toggles the readonly state of the DropdownList. When the AutoComplete is readonly it doesn't allow user input.
Params:
| Name | Type | Attribute | Description |
| flag | Boolean | If true the DropdownList will not allow user input. |
Return:
| Null |
Reference
Source