This is a migrated thread and some comments may be shown as answers.

Crosstab/Table support for RTL direction

2 Answers 308 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Abdul Rahman
Top achievements
Rank 1
Abdul Rahman asked on 14 Mar 2015, 02:56 PM
Hi,

First of all I am posting this question because mostly all other questions related to the issue are kind of not uptodate.
I need to deliver reports those support both English/Arabic languages, which needs support for RTL direction,
to elaborate: if I have a table with three columns ProductID, ProductName, ProductPrice, I hope to get them in reverse order for Arabic language (ProductPrice, ProductName, ProductID)
would anybody please help me with this issue, is there a way to adjust the report layout to flow in RTL direction, I don't just need that for Table reports,
I also need it for Crosstab reports
I understand there is a limitation in RTL support, but would this be overcomed in the near future?

Thanks

2 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 17 Mar 2015, 03:38 PM
Hi Abdul,

The requested feature is not supported. You will need to change the order of columns in the Table item's template. For example you can use the following approaches:
  1. Restructure the Table item template at run-time, after detecting the current culture and before displaying the report.
    For example:
    var report = new MyReport();
    var isRTLculture = GetCulture();
     
    if(isRTLculture)
    {
        var table = report.Items.Find("table1",true)[0] as Telerik.Reporting.Table;//this is a an approach for accessing items
        RestructureItemTemplate(table);
    }
     
    reportViewer1.ReportSource = new InstanceReportSource { ReportDocument = report};


  2. Via expressions in the report. Use expressions and/or user functions to set the TextBox items' Value properties. Thus you can control which field will be displayed.
    For example : "=IIf(Parameters.ParameterIsRTL=True,Fields.Col3,Fields.Col1)"


Feel free to describe the use case in a feature requested that can be submitted in our public feedback portal. Features are considered for implementation based on the demand for them.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
1
Aseman
Top achievements
Rank 1
Veteran
answered on 21 Jun 2020, 04:41 AM
At the moment , have you fixed it?! The right to left formation for Telerik report
Tags
General Discussions
Asked by
Abdul Rahman
Top achievements
Rank 1
Answers by
Stef
Telerik team
Aseman
Top achievements
Rank 1
Veteran
Share this question
or