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).
public event EventHandler<ControlResolveEventArgs> DefaultButtonResolve
Public Event DefaultButtonResolve As EventHandler(Of ControlResolveEventArgs)
The DefaultButtonResolve event's data class is ControlResolveEventArgs. The following properties provide information specific to this event:
|ControlID||Gets the ID value of a control that should be resolved.|
|ResolvedControl||Gets or sets the control relating to the event.|
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).