Right To Left

Some languages (Arabic and Hebrew especially) render content from the right to the left of the page. HTML accommodates this with the 'dir' attribute. Setting 'dir' to 'rtl' on any element causes the element's content to flow from right to left.

The FlexGrid supports this automatically. If the element hosting the grid has the 'dir' attribute set to 'rtl', the grid will render columns from the right to the left. You don't have to set any properties on the control.

Note that the 'dir' attribute value is inherited, so if you set it on the body tag for example, the entire page will be rendered from right to left, including the grid.

Note also that CSS has a 'direction' attribute that performs the same function as the 'dir' element attribute. The 'dir' attribute is generally considered more appropriate for several reasons, including the fact that the 'dir' attribute can be used in CSS rules.

(no grouping) Country Product Country and Product Product and Country Product, Country and Amount English German Italian French Portuguese Russian Japanese Korean
5 50 500 5,000 50,000 100,000 500,000 1,000,000

Current Item

ID
{{flex.collectionView.currentItem?.id}}
Country
{{flex.collectionView.currentItem?.country}}
Product
{{flex.collectionView.currentItem?.product}}
Color
{{flex.collectionView.currentItem?.color}}
Amount
{{flex.collectionView.currentItem?.amount | number:'1.2-2'}}