Right to Left Problem

14 posts, 1 answers
  1. Mahdi
    Mahdi avatar
    30 posts
    Member since:
    Oct 2006

    Posted 29 Aug 2009 Link to this post

    Hi
    I just use RadCombo with dir="rtl" attribute but the items division opens in wrong position
    Like this

    and my aspx code is:
    <table width="200px"
        <tr> 
            <td style="width:35%"
                <asp:TextBox runat="server" ID="txtCode" Width="100%" onchange="setDescriptionCombo();"/> 
            </td> 
            <td style="width:60%" dir="ltr"
                <telerik:RadComboBox runat="server" EnableLoadOnDemand="true" ID="rcmbDescription" 
                    Width="120" HighlightTemplatedItems="true" MarkFirstMatch="true" 
                    dir="rtl" ShowMoreResultsBox="true" EnableVirtualScrolling="true" Filter="Contains"
                </telerik:RadComboBox> 
            </td > 
            <td style="width:5%" align="center"
                 
            </td> 
        </tr> 
    </table> 
    Thanks in advance
  2. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 31 Aug 2009 Link to this post

    Hello mahdiprog,

    RadComboBox takes its orientation from the containers it is in. Try if changing this line:
    <td style="width:60%" dir="ltr">
    to this:
    <td style="width:60%" dir="rtl">
    will fix it.

    Regards,
    Kamen Bundev
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mahdi
    Mahdi avatar
    30 posts
    Member since:
    Oct 2006

    Posted 01 Sep 2009 Link to this post

    Thanks for reply
    I did it but it's still like that.
    Also I forgot to say that I doesn't use any DOCTYPE.
  5. Mahdi
    Mahdi avatar
    30 posts
    Member since:
    Oct 2006

    Posted 02 Sep 2009 Link to this post

    Any Idea?
  6. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 03 Sep 2009 Link to this post

    Hello mahdiprog,

    Can you show me a live URL of the page with the RadComboBox, so I can check what the problem is?

    Greetings,
    Kamen Bundev
    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.
  7. Mahdi
    Mahdi avatar
    30 posts
    Member since:
    Oct 2006

    Posted 03 Sep 2009 Link to this post

  8. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 07 Sep 2009 Link to this post

    Hi mahdiprog,

    Try setting dir="rtl" to the body tag, like this:
    <body dir="rtl">

    Let me know if that works.

    Greetings,
    Kamen Bundev
    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.
  9. Mahdi
    Mahdi avatar
    30 posts
    Member since:
    Oct 2006

    Posted 11 Nov 2009 Link to this post

    this is set on css and doesn't work.
    you can try it on our production server at this address:
    http://95.38.44.247:12/UI/BasicSetting/PlacesDefinition.aspx
    thanks in advance.

  10. Answer
    Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 18 Nov 2009 Link to this post

    Hi mahdiprog,

    Looks like there is a bug in RadComboBox since its DropDown looks only for the dir="rtl" attribute of the body element on initialization. We will try to fix it for the next service pack. If you set dir="rtl" on the body tag the issue will be fixed. However there is a bug in Firefox 3.5 which renders in RTL mode the scrollbar on the right instead of on the left causing the RadComboBoxDropDown to miscalculate again. We can avoid that with some javascript on pageLoad (or on RadComboBox onClientLoad):
    function pageLoad() {
        if ($telerik.isIE7 || $telerik.isIE6)
            document.body.setAttribute('dir', 'rtl');
    }

    Let me know if this helps. I've updated your Telerik points for the report.

    Best wishes,
    Kamen Bundev
    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.
  11. Mahdi
    Mahdi avatar
    30 posts
    Member since:
    Oct 2006

    Posted 18 Nov 2009 Link to this post

    that fixes the problem.
    thank you
  12. Majid Darab
    Majid Darab avatar
    110 posts
    Member since:
    Sep 2012

    Posted 15 Jan 2010 Link to this post

    bug is still there...
    hello my dear friend
    i have this problem in another condition ...
    at first see my radcombobox code here :
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %> 
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     
    <html xmlns="http://www.w3.org/1999/xhtml" > 
    <head runat="server"
        <title></title
    </head> 
    <body dir="rtl"
        <form id="form1" runat="server"
        <div > 
         
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
        </telerik:RadScriptManager> 
            <asp:SqlDataSource ID="SqlDataSource1" runat="server"  
                ConnectionString="<%$ ConnectionStrings:DarmanConnectionString %>"  
                SelectCommand="SELECT * FROM [UserTypes]"></asp:SqlDataSource> 
         
            <telerik:RadComboBox ID="RadComboBox1" Runat="server"  
                DataSourceID="SqlDataSource1" DataTextField="UserTypeTitle" DataValueField="ID"  
                MarkFirstMatch="True"
            </telerik:RadComboBox> 
         
        </div> 
        </form> 
    </body> 
    </html> 
     

    when i browse my page in ie 7 every thing is good
    but in firefox 3 the position of drop down is different

    when i change the dir="rtl" from body to form or it's div (under form) so every thing is ok , but i can not do that , because when i set the dir of form or it's div to rtl the horizontal scroll bar in visual studio 2008 is disappeared and disabled for big pages(also disabled in browsers)....
    now what can i do about this problem?
    best regards



  13. Majid Darab
    Majid Darab avatar
    110 posts
    Member since:
    Sep 2012

    Posted 17 Jan 2010 Link to this post

    3 days past...
    any idea
    thanks for your attention

  14. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 19 Jan 2010 Link to this post

    Hi Majid Darab,

    Try removing dir="rtl" frrom the body tag and setting direction: rtl to the body tag in CSS. Then add this javascript to your page:
    function pageLoad() {
        if ($telerik.isIE7 || $telerik.isIE6)
            document.body.setAttribute('dir', 'rtl');
    }

    and see if that will help.

    Greetings,
    Kamen Bundev
    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.
  15. Majid Darab
    Majid Darab avatar
    110 posts
    Member since:
    Sep 2012

    Posted 20 Jan 2010 Link to this post

    thank you sir
    it worked
    can u see this thread too plz....
    http://www.telerik.com/community/forums/aspnet-ajax/grid/position-of-the-filter-s-dropdown-of-radgrid-in-ie-8-is-wrong-when-the-direction-right-to-left.aspx
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017