ASPxWebControl.SetIECompatibilityModeEdge() Method
Switches all DevExpress controls on a page to use the latest IE version.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v19.1.dll
Declaration
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.
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();
}
Example for ASP.NET MVC
Global.asax code:
protected void Application_AcquireRequestState(Object sender, EventArgs e) {
DevExpress.Web.ASPxWebControl.SetIECompatibilityModeEdge();
}