Skip to main content

PopupMenuSettings.PopupElementResolve Property

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

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public EventHandler<ControlResolveEventArgs> PopupElementResolve { get; set; }

Property Value

Type Description
EventHandler<ControlResolveEventArgs>

An EventHandler<TEventArgs><ControlResolveEventArgs,> delegate method allowing you to implement custom processing.

Remarks

If an object specified by the PopupMenuSettings.PopupElementID property cannot be found within a web page in the standard manner (for instance, it is contained within a naming container such as a RoundPanel, or there is more than one object with the same ID on the page - within UserControl objects), you can use the PopupElementResolve property to create a delegate method to obtain the required object manually.

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

See Also