Hi
When we want set RadToolTipManager text direction to “right to left”, must use CssClass!
Well, now look at this code:
<%@ Page Language="C#" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>tooltip</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<form id="form" runat="server">
<h1>RadToolTipManager text direction set to default(left to right).</h1>
<div style="margin:auto;width:50px;">
<tlk:RadScriptManager ID="radScriptManager" runat="server" />
<tlk:RadToolTipManager runat="server" ID="radToolTipManager"
ManualClose="true"
ManualCloseButtonText="ManualCloseButtonText"
Position="MiddleLeft"
RelativeTo="Element"
ShowEvent="OnMouseOver"
Width="275">
<TargetControls>
<tlk:ToolTipTargetControl TargetControlID="button" />
</TargetControls>
</tlk:RadToolTipManager>
<asp:Button ID="button" runat="server"
Text="Button"
ToolTip="آزمايشی" />
</div>
</form>
</body>
</html>
first bug: CssClass is not working for RadToolTipManager, and also we can’t customize tooltips elements like font with Font Properties of RadToolTipManager!
So I set direction property of parent div tag style to rtl(direction:rtl;), but it is not working too!
Finally I realized that the only way to changing RadToolTipManager text direction is that I must be set direction property of form tag style or a tag that is parent of form tag!!!
now look at finally code:
<%@ Page Language="C#" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>tooltip</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<form id="form" runat="server" style="direction:rtl;">
<div style="margin:auto;width:50px;">
<tlk:RadScriptManager ID="radScriptManager" runat="server" />
<tlk:RadToolTipManager runat="server" ID="radToolTipManager"
ManualClose="true"
ManualCloseButtonText="ManualCloseButtonText"
Position="MiddleLeft"
RelativeTo="Element"
ShowEvent="OnMouseOver"
Width="275">
<TargetControls>
<tlk:ToolTipTargetControl TargetControlID="button" />
</TargetControls>
</tlk:RadToolTipManager>
<asp:Button ID="button" runat="server"
Text="Button"
ToolTip="آزمايشی" />
</div>
</form>
</body>
</html>
But when I do this an other bug detected!
Secound bug: Scrollbar is very long! Look at images