Version 1
Version 1

Right-to-Left Formatting

DataViewsJS supports right-to-left functionality for languages such as Arabic where the text flows from right-to-left. You can enable this feature by setting the rightToLeft property to true. Setting this property enables reverse scrolling.

Use the following steps to implement the right-to-left formatting in the grid.

Sample Code

These steps assume that you have already initialized the grid and defined the columns. See Creating a Basic Grid and Defining Columns for additional information.

Initialize the code by calling the grid ID from the DIV tag and set the rightToLeft property to true.

var dataView = new GC.DataViews.DataView(
  new GC.DataViews.GridLayout({
    rightToLeft: true,

See also