Problems with RTL

2 posts, 0 answers
  1. akeel wall
    akeel wall avatar
    2 posts
    Member since:
    May 2006

    Posted 20 Oct 2009 Link to this post

    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?
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 26 Oct 2009 Link to this post

    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.
Back to Top