ASPxWebControl.SetIECompatibilityModeEdge(Control) Method
OBSOLETE
Use another overload of this method instead.
Switches all DevExpress controls on the specified page to use the latest IE version.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v18.2.dll
Declaration
[Obsolete("Use another overload of this method instead.")]
public static void SetIECompatibilityModeEdge(
Control pageOrMasterPage
)
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 WebForms.
The universal approach for working with the SetIECompatibilityMode/SetIECompatibilityModeEdge methods is as follows:
- Use the ASPxWebControl.SetIECompatibilityMode to decrement the IE version.
- Use the SetIECompatibilityModeEdge to increment the IE version.
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 WebForms
Code behind:
protected void Page_PreInit(object sender, EventArgs e) {
DevExpress.Web.ASPxWebControl.SetIECompatibilityModeEdge(this.Master);
}