Respresents a labeled drop down list that allows user to display and select a single item from the drop down list.
Declaring type: ListField
Namespace: XNode.Web.XField.Controls
Assembly: XNode.Web.XField
Collapse/Expand Public Constructors
  Name Description
Public Method ListField Initializes a new instance of ListField.
Collapse/Expand Public Methods (see also: Protected Methods)
  Name Description
Public Method Virtual DataBind Binds a data source to the drop down list and all its child controls.
Collapse/Expand Protected Methods
  Name Description
Protected Method Virtual CreateCustomValidator Adds custom validator to the controls collection.
Protected Method Virtual CreateDataControls Adds the drop down list to the controls collection.
Protected Method Virtual LoadViewState Restores view state information from a previous request that was saved with the ListField.SaveViewState() method.
Protected Method Virtual OnCustomValidate Raises the CustomValidate event for this instance of ListField.
Protected Method Virtual PrepareForRender Prepare for rendering by validating control properties and setting the properties of the child controls.
Protected Method Virtual RegisterClientScriptResources Registers client-side script resources for this instance of ListField.
Protected Method Virtual RegisterInitScript Registers initialization script for this instance of ListField.
Protected Method Virtual SaveViewState Saves any state that was modified after the ListField.TrackViewState() method was invoked.
Protected Method Virtual TrackViewState Causes this instance of ListField to track changes to its view state so that they can be stored in the control's System.Web.UI.Control.ViewState property.
Collapse/Expand Public Properties (see also: Protected Properties)
  Name Description
Public Property AppendDataBoundItems Gets or sets a value indicating whether list items are cleared befor data binding.
Public Property AutoPostBack Gets or sets a value indicating whether a postback to the server automatically occurs when the user changes the list selection.
Public Property CausesValidation Gets or sets a value indicating whether auto-postback triggers server-side page validation.
Public Property Virtual CompareToControlValidation Gets or sets the settings that determine the compare to control validation behavior for this instance of ListField.
Public Property Virtual CompareToValueValidation Gets or sets the settings that determine the compare to value validation behavior for this instance of ListField.
Public Property DataSource Gets or sets the object from which the drop down list retrieves its list of data items.
Public Property DataTextField Gets or sets the field of the data source that provides the text content of the list items.
Public Property DataValueField Gets or sets the field of the data source that provides the value of each list item.
Public Property DropDownListAttributes Gets the collection of arbitrary attributes (for rendering only) of the drop down list that do not correspond to properties on the control.
Public Property DropDownListClientID Gets the client ID of the drop down list control.
Public Property Virtual HideSelectionPrompt Gets or sets a value indicating whether selection prompt should be excluded from the list items.
Public Property Items Gets the collection of items in the drop down list.
Public Property Virtual RegexValidation Gets or sets the settings that determine the regular expression validation behavior for this instance of ListField.
Public Property SelectedIndex Gets or sets the index of the selected item in the drop down list.
Public Property SelectedItem Gets the selected item with the lowest index in the drop down list.
Public Property SelectedValue Gets the value of the selected item in the list control; or selects the item in the list control that contains the specified value.
Public Property Virtual SelectionPromptText Gets or sets the selection prompt text.
Public Property Virtual SelectionPromptValue Gets or sets the selection prompt value.
Public Property Width Gets or sets the width of the drop down list.
Collapse/Expand Protected Properties
  Name Description
Protected Property ClientValidatorClass Gets the name of the client-side validator JavaScript class for this instance of ListField.
Protected Property DropDownListControl Gets the DropDownList control contained in this ListField.
Protected Property MandatoryToolTipParameters Gets the comma delimited mandatory parameters list that is used to construct tooltip at client side for this instance of ListField.
Collapse/Expand Public Events
  Name Description
Public Event CustomValidate Occurs as the last step of server-side validation.
Public Event DataBound Occurs after the server control binds to a data source.
Public Event SelectedIndexChanged Occurs when the selection from the drop down list changes between posts to the server.