Skip to main content

ControlResolveEventArgs.ResolvedControl Property

Gets or sets the control relating to the event.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll

NuGet Package: DevExpress.Web


public Control ResolvedControl { get; set; }

Property Value

Type Description

A Control object representing the required control.


In the corresponding event’s handler, you manually find a control that should be resolved (its ID is passed via the ControlResolveEventArgs.ControlID property), and assign it to the ResolvedControl property.


The complete sample project is available in the DevExpress Code Central database at E557.

<dxm:ASPxPopupMenu ID="ASPxPopupMenu1" runat="server" OnPopupElementResolve="ASPxPopupMenu1_PopupElementResolve" PopupElementID="ASPxButton1">
        <dxm:MenuItem Text="Red Item">
                <span style="color:Red;">Red Item</span>
        <dxm:MenuItem Text="Yellow Item">
                <span style="color:Yellow;">Yellow Item</span>
        <dxm:MenuItem Text="Green Item">
                <span style="color:Green;">Green Item</span>
    <ClientSideEvents ItemClick="function(s,e) {alert('The item with index = ' + e.item.index.toString() + ' was clicked');}"/>
protected void ASPxPopupMenu1_PopupElementResolve(object sender, ControlResolveEventArgs e) {
    e.ResolvedControl = ASPxButton1;
See Also