Click or drag to resize

OptionGroupAdapter Class

A DropDownList adapter to add OptGroup support to HTML SELECT tags. The group to which each item belongs should be specifed by adding a "Group" attribute to that ListItem with the group text as its value.
Inheritance Hierarchy

Namespace:  NetQuarry
Assembly:  EAP.WebControls (in EAP.WebControls.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public class OptionGroupAdapter : WebControlAdapter

The OptionGroupAdapter type exposes the following members.

Constructors
  NameDescription
Public methodOptionGroupAdapter
Initializes a new instance of the OptionGroupAdapter class
Top
Properties
  NameDescription
Protected propertyBrowser
Gets a reference to the browser capabilities of the client making the current HTTP request.
(Inherited from ControlAdapter.)
Protected propertyControl
Gets a reference to the Web control to which this control adapter is attached.
(Inherited from WebControlAdapter.)
Protected propertyIsEnabled
Gets a value indicating whether the Web control and all its parent controls are enabled.
(Inherited from WebControlAdapter.)
Protected propertyPage
Gets a reference to the page where the control associated with this adapter resides.
(Inherited from ControlAdapter.)
Protected propertyPageAdapter
Gets a reference to the page adapter for the page where the associated control resides.
(Inherited from ControlAdapter.)
Top
Methods
  NameDescription
Protected methodBeginRender
Called prior to the rendering of a control. In a derived adapter class, generates opening tags that are required by a specific target but not needed by HTML browsers.
(Inherited from ControlAdapter.)
Protected methodCreateChildControls
Creates the target-specific child controls for a composite control.
(Inherited from ControlAdapter.)
Protected methodEndRender
Called after the rendering of a control. In a derived adapter class, generates closing tags that are required by a specific target but not needed by HTML browsers.
(Inherited from ControlAdapter.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodLoadAdapterControlState
Loads adapter control state information that was saved by SaveAdapterControlState during a previous request to the page where the control associated with this control adapter resides.
(Inherited from ControlAdapter.)
Protected methodLoadAdapterViewState
Loads adapter view state information that was saved by SaveAdapterViewState during a previous request to the page where the control associated with this control adapter resides.
(Inherited from ControlAdapter.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnInit
Overrides the OnInit(EventArgs) method for the associated control.
(Inherited from ControlAdapter.)
Protected methodOnLoad
Overrides the OnLoad(EventArgs) method for the associated control.
(Inherited from ControlAdapter.)
Protected methodOnPreRender
Overrides the OnPreRender(EventArgs) method for the associated control.
(Inherited from ControlAdapter.)
Protected methodOnUnload
Overrides the OnUnload(EventArgs) method for the associated control.
(Inherited from ControlAdapter.)
Protected methodRender
Generates the target-specific markup for the control to which the control adapter is attached.
(Inherited from WebControlAdapter.)
Protected methodRenderBeginTag
Creates the beginning tag for the Web control in the markup that is transmitted to the target browser.
(Inherited from WebControlAdapter.)
Protected methodRenderChildren
Generates the target-specific markup for the child controls in a composite control to which the control adapter is attached.
(Inherited from ControlAdapter.)
Protected methodRenderContents
Overrides the RenderContents() method of all DropDownLists in the site in order to render OptGroup support.
(Overrides WebControlAdapterRenderContents(HtmlTextWriter).)
Protected methodRenderEndTag
Creates the ending tag for the Web control in the markup that is transmitted to the target browser.
(Inherited from WebControlAdapter.)
Protected methodSaveAdapterControlState
Saves control state information for the control adapter.
(Inherited from ControlAdapter.)
Protected methodSaveAdapterViewState
Saves view state information for the control adapter.
(Inherited from ControlAdapter.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
Remarks
To install an adapter you must create a .browser file and place it in an "App_Browsers" subfolder of the web project folder.
See Also