Tab

ASPxWebControl.SetIECompatibilityModeEdge(Control) Method

Obsolete. Switches all DevExpress controls on the specified page to use the latest IE version.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

[Obsolete("Use another overload of this method instead.")]
public static void SetIECompatibilityModeEdge(
    Control pageOrMasterPage
)
<Obsolete("Use another overload of this method instead.")>
Public Shared Sub SetIECompatibilityModeEdge(
    pageOrMasterPage As Control
)

Parameters

Name Type Description
pageOrMasterPage Control

A Control object that specifies a web page (or master page) whose response renders the X-UA-Compatible header.

Remarks

A call to the SetIECompatibilityModeEdge method changes the rendering manner of all DevExpress controls within a page, to ensure that they behave correctly under the specified IE version.

NOTE

This overload is not applicable to the ASP.NET MVC environment, because there is no such Page object in MVC as opposed to ASP.NET Web Forms.

The universal approach for working with the SetIECompatibilityMode/SetIECompatibilityModeEdge methods is as follows:

This method is useful when it is necessary to switch all DevExpress controls on the specified page to use the latest IE version at runtime. To accomplish this task declaratively, consider using the IE Compatibility Version configuration option.

Refer to the KA18646 Knowledge Base article to learn more.

Example for ASP.NET Web Forms

Code behind:

protected void Page_PreInit(object sender, EventArgs e) {
    DevExpress.Web.ASPxWebControl.SetIECompatibilityModeEdge(this.Master);
}
See Also