This is a migrated thread and some comments may be shown as answers.
Problems with RTL
1 Answer 15 Views
This is a migrated thread and some comments may be shown as answers.
akeel wall
Top achievements
Rank 2
akeel wall asked on 20 Oct 2009, 08:30 PM
I think there is a problem with the File Explorer when the containing body's direction is set to RTL.

I am using Web20 skin for the FileExplorer inside this page. I want the FileExplorer to have an LTR instead of the page's RTL. No matter what I do, I cannot get this to work!

If I add (dir=ltr) in the control, it will make things worse. The same thing happens if I put the control inside a div and set the div's direction to ltr.

There is even another problem; if I don't change the FileExpolorer to LTR and stick to RTL, the Icons next to the file names (in the file panel) is not adjacent to the text as it should be, but it is rather on the opposite direction close to the size coloumn.

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 26 Oct 2009, 12:44 PM
Hi Akeel,

In your case I recommend you exclude the RadFileExplorer control from the RTL mode and set explicitly LTR to the control. To do this you need to set a custom skin to the embedded in RadFileExplorer RadTreeView in order to force it to behave such as in LTR mode, event the RTL is set. As a quick solution, however, you can use the approach shown in the attached demo. Note that this will disable the RTL support for all TreeView controls on the page that contains these script:

var $ = $telerik.$;
var $T = Telerik.Web.UI;
$T.RadTreeView._initializeRtl = function(treeElement) { };
$T.RadTreeView.prototype._setRtlSkin = function() { };

I hope this help.

All the best,
Fiko
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.
Asked by
akeel wall
Top achievements
Rank 2
Answers by
Fiko
Telerik team
Share this question
or