Skip to main content
A newer version of this page is available. .
Tab

ASPxWebControl.GlobalRightToLeft Property

Gets or sets that the right-to-left orientation shall be globally applied to all DevExpress web controls across the web page or the entire web site.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

NuGet Package: DevExpress.Web

Declaration

public static DefaultBoolean GlobalRightToLeft { get; set; }

Property Value

Type Description
DefaultBoolean

One of the DefaultBoolean enumeration values.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Remarks

Use the GlobalRightToLeft property to apply the selected right-to-left orientation to all DevExpress web controls within the web page or the entire web site. If the GlobalRightToLeft property is not specified (is set to Default), it returns the rightToLeft Web.config option value.

Depending on your application needs, you can use the GlobalRightToLeft property at different levels within your application. The main requirement is that the property should be explicitly assigned on executing each request.

  • Page Level

    Note that you should specify the GlobalRightToLeft property before the PreRender event is raised.

    protected void Page_PreInit(object sender, EventArgs e) {
         DevExpress.Web.ASPxWebControl.GlobalRightToLeft = DefaultBoolean.True;
    }
    
  • Application Level - in Global.asax

    protected void Application_BeginRequest() {
        DevExpress.Web.ASPxWebControl.GlobalRightToLeft = DefaultBoolean.True;
    }
    

refer to the Right to Left Support help topic to learn more.

See Also