Class DnnDropDownList
Inheritance
System.Object
DnnDropDownList
Implements
INamingContainer
Assembly: DotNetNuke.Web.dll
Syntax
public class DnnDropDownList : Panel
Properties
|
Improve this Doc
View Source
AutoPostBack
Gets or sets a value indicating whether a postback to the server automatically occurs when the user changes the list selection.
Declaration
public bool AutoPostBack { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
true if a postback to the server automatically occurs whenever the user changes the selection of the list; otherwise, false. The default is false.
|
|
Improve this Doc
View Source
CausesValidation
Gets or sets a value indicating whether validation is performed when a control is clicked.
Declaration
public virtual bool CausesValidation { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Controls
Declaration
public override ControlCollection Controls { get; }
Property Value
| Type |
Description |
| ControlCollection |
|
|
Improve this Doc
View Source
ExpandPath
Gets or sets when the tree view in drop down has multiple level nodes, and the initial selected item is a child node.
we need expand its parent nodes to make it selected.
Declaration
public string ExpandPath { get; set; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
FirstItem
Gets or sets item to be displayed as first item.
Declaration
public ListItem FirstItem { get; set; }
Property Value
| Type |
Description |
| ListItem |
|
|
Improve this Doc
View Source
OnClientSelectionChanged
Gets register a list of JavaScript methods that are executed when the selection from the list control changes on the client.
Declaration
public List<string> OnClientSelectionChanged { get; }
Property Value
| Type |
Description |
| List<System.String> |
|
|
Improve this Doc
View Source
SelectedItem
Gets or sets the selected item in the control, or selects the item in the control.
Declaration
public ListItem SelectedItem { get; set; }
Property Value
| Type |
Description |
| ListItem |
|
|
Improve this Doc
View Source
SelectedItemValueAsInt
Gets when this method returns, contains the 32-bit signed integer value equivalent to the number contained in
SelectedItem.Value, if the conversion succeeded, or Null.NullInteger if the conversion failed.
Declaration
public int SelectedItemValueAsInt { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
SelectItemDefaultText
Sets dropDownList Caption when no Item is selected.
Declaration
public string SelectItemDefaultText { set; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
Services
Declaration
public ItemListServicesOptions Services { get; }
Property Value
|
Improve this Doc
View Source
Skin
Declaration
public string Skin { get; set; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
StateControl
Declaration
protected DnnGenericHiddenField<DnnDropDownListState> StateControl { get; }
Property Value
|
Improve this Doc
View Source
UndefinedItem
Gets or sets selectedItem's value when SelectedItem is not explicitly specified (i.e. equals null);
Always displayed as first option in the list.
Declaration
public ListItem UndefinedItem { get; set; }
Property Value
| Type |
Description |
| ListItem |
|
|
Improve this Doc
View Source
ValidationGroup
Gets or sets the group of controls for which the control causes validation when it posts back to the server.
Declaration
public virtual string ValidationGroup { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Methods
|
Improve this Doc
View Source
CreateChildControls()
Declaration
protected override void CreateChildControls()
|
Improve this Doc
View Source
OnInit(EventArgs)
Declaration
protected override void OnInit(EventArgs e)
Parameters
| Type |
Name |
Description |
| EventArgs |
e |
|
|
Improve this Doc
View Source
OnPreRender(EventArgs)
Declaration
protected override void OnPreRender(EventArgs e)
Parameters
| Type |
Name |
Description |
| EventArgs |
e |
|
|
Improve this Doc
View Source
OnSelectionChanged(EventArgs)
Declaration
protected virtual void OnSelectionChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| EventArgs |
e |
|
Events
|
Improve this Doc
View Source
SelectionChanged
Occurs when the selection from the list control changes between posts to the server.
Declaration
public event EventHandler SelectionChanged
Event Type
| Type |
Description |
| EventHandler |
|
Implements
INamingContainer
Extension Methods