Skip to main content
Tab

ControlResolveEventArgs.ResolvedControl Property

Gets or sets the control relating to the event.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public Control ResolvedControl { get; set; }

Property Value

Type Description
Control

A Control object representing the required control.

Remarks

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.

Example

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ResolvedControl property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also