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

Grid direction:rtl ?

7 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
hedayat
Top achievements
Rank 1
hedayat asked on 13 Dec 2009, 08:56 AM

I want to have a Grid with direction:rtl. (Header , Columnd)
I did it using 2 different method :
1: Surrounded Grid with <div style="direction:rtl">
2: added style="direction:rtl;" to  "telerik.office2007.min.css"

But generally rightToLeft will destorid Filter Dialog. Somewhen half of it does not show, or it opened in the wrong place or etc
( using style = "text-align:right" fiter dialog has problem, too)

7 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 14 Dec 2009, 09:39 AM
Hi hedayat,

 You can use the attached JavaScript which will fix the filtering in RTL mode. It currently works only in RTL mode though.


Regards,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
hedayat
Top achievements
Rank 1
answered on 26 Dec 2009, 01:26 PM
The problem has not solved, how can i change direction to "rtl" using this new script ?
0
Atanas Korchev
Telerik team
answered on 28 Dec 2009, 11:54 AM
Hi hedayat,

There are two things you need to do:
  1. Replace the telerik.grid.filtering.js file in your project with the one attached here
  2. Add dir="rtl" to the html attributes of the grid:
    Grid().HtmlAttributes(new {dir="rtl"})

I hope this helps,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
hedayat
Top achievements
Rank 1
answered on 11 Jan 2010, 06:40 AM
It does not work? could you make a sample project using this Script?
0
Atanas Korchev
Telerik team
answered on 11 Jan 2010, 09:22 AM
Hi hedayat,

Please find attached a sample project showing how to use the grid in RTL mode.

Regards,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
hedayat
Top achievements
Rank 1
answered on 17 Jan 2010, 07:57 AM
Thanks for your sample. But, what about the Header align? Your sample changes the grid's body align, but Headers always in "ltr" mode.

What is your solution for this problem?
0
Alex Gyoshev
Telerik team
answered on 20 Jan 2010, 03:40 PM
Hello Hedayat,

We just released a service pack (for the beta!) that features the grid RTL functionality out-of-the-box. You can download it from your account, and you can check the online demo on how to enable it.

Greetings,
Alex Gyoshev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
hedayat
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
hedayat
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or