Hi
I just use RadCombo with dir="rtl" attribute but the items division opens in wrong position
Like this
and my aspx code is:
Thanks in advance
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> |
13 Answers, 1 is accepted
0
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.
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.
0
Mahdi
Top achievements
Rank 1
answered on 01 Sep 2009, 07:40 AM
Thanks for reply
I did it but it's still like that.
Also I forgot to say that I doesn't use any DOCTYPE.
I did it but it's still like that.
Also I forgot to say that I doesn't use any DOCTYPE.
0
Mahdi
Top achievements
Rank 1
answered on 02 Sep 2009, 11:08 AM
Any Idea?
0
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.
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.
0
Mahdi
Top achievements
Rank 1
answered on 03 Sep 2009, 10:30 AM
This is the link
Bests
Bests
0
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.
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.
0
Mahdi
Top achievements
Rank 1
answered on 11 Nov 2009, 01:13 PM
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.
you can try it on our production server at this address:
http://95.38.44.247:12/UI/BasicSetting/PlacesDefinition.aspx
thanks in advance.
0
Accepted
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.
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.
0
Mahdi
Top achievements
Rank 1
answered on 18 Nov 2009, 12:51 PM
that fixes the problem.
thank you
thank you
0
Majid Darab
Top achievements
Rank 1
answered on 15 Jan 2010, 07:03 PM
bug is still there...
hello my dear friend
i have this problem in another condition ...
at first see my radcombobox code here :
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
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
0
Majid Darab
Top achievements
Rank 1
answered on 17 Jan 2010, 01:55 PM
3 days past...
any idea
thanks for your attention
any idea
thanks for your attention
0
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.
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.
0
Majid Darab
Top achievements
Rank 1
answered on 20 Jan 2010, 12:03 PM
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
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