New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Right-to-left Support


The RadSocialShare fully supports right-to-left (RTL) language locales. It is created and added to the page as a child of the form element and in order to turn on the RTL support you should set dir=rtl to the html or body elements.
  • Default.aspx
    • Default.aspx
    • DefaultVB.aspx
<%@ Page %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body style="direction: rtl;">
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <h3>
        Leonardo DaVinci wrote in RTL</h3>
    <telerik:RadSocialShare RenderMode="Lightweight" runat="server" ID="RadSocialShare1" UrlToShare="http://www.mos.org/sln/Leonardo/LeonardoRighttoLeft.html"
        Skin="Sunset" TitleToShare="Leonardo DaVinci wrote in RTL">
        <MainButtons>
            <telerik:RadSocialButton SocialNetType="ShareOnFacebook" />
            <telerik:RadSocialButton SocialNetType="ShareOnTwitter" />
            <telerik:RadSocialButton SocialNetType="ShareOnPinterest" UrlToShare="http://legacy.mos.org/sln/Leonardo/gifs/writeback.jpg"
                TitleToShare="Leonardo: Right to Left" />
            <telerik:RadSocialButton SocialNetType="ShareOnGooglePlus" />
            <telerik:RadSocialButton SocialNetType="StumbleUpon" />
            <telerik:RadSocialButton SocialNetType="Tumblr" />
            <telerik:RadSocialButton SocialNetType="MailTo" />
            <telerik:RadCompactButton />
        </MainButtons>
    </telerik:RadSocialShare>
    <p>
        Leonardo wrote in Italian using a special kind of shorthand that he invented himself.
        People who study his notebooks have long been puzzled by something else, however.
        He usually used "mirror writing", starting at the right side of the page and moving
        to the left. Only when he was writing something intended for other people did he
        write in the normal direction.
    </p>
    <p>
        People who were contemporaries of Leonardo left records that they saw him write
        and paint left handed. He also made sketches showing his own left hand at work.
        Being a lefty was highly unusual in Leonardo's time. Because people were superstitious,
        children who naturally started using their left hands to write and draw were forced
        to use their right hands.
    </p>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance