Tab

ASPxPanelBase.DefaultButtonResolve Event

Allows an object specified by the ASPxPanelBase.DefaultButton property to be found manually, if it can’t be found automatically (for instance, if it’s hidden within a naming container).

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

public event EventHandler<ControlResolveEventArgs> DefaultButtonResolve

Event Data

The DefaultButtonResolve event's data class is ControlResolveEventArgs. The following properties provide information specific to this event:

Property Description
ControlID Gets the ID value of a control that should be resolved.
ResolvedControl Gets or sets the control relating to the event.

Remarks

The DefaultButtonResolve event occurs when the hierarchically-qualified identifier of a default button, specified by the ASPxPanelBase.DefaultButton property, is queried during panel rendering.

If the specified default button object cannot be found within a web page in a standard manner (for instance, it is contained within a naming container such as an ASPxRoundPanel, or there is more than one object with the same ID on the page - within UserControl objects), you should handle the DefaultButtonResolve event, to obtain the required object manually.

The DefaultButtonResolve event argument’s parameters allow you to identify the control that should be found (the ControlResolveEventArgs.ControlID property) and point out the resolved control (the ControlResolveEventArgs.ResolvedControl property).

See Also