RadSocialShare mess while loading

2 posts, 0 answers
  1. Log
    Log avatar
    10 posts
    Member since:
    Jun 2013

    Posted 07 Jul 2013 Link to this post

    while RadSocialShare is loading which takes unusual long time it expands website normally large and browser scrollbars appear. when its loaded its ok but while loading looks a lilttle ugly. how to fix this?
  2. Danail Vasilev
    Danail Vasilev avatar
    1502 posts

    Posted 11 Jul 2013 Link to this post

    Hello Log,

    If you are using Standard buttons, note that they are created by external scripts coming from respective networks and we have no control over their behavior - We leave the entire rendering and functionality to them and they are, therefore, placed inside iframes so that their scripts can freely access and modify the HTML they need.

    What you can do, however, is to display the RadSocialShare when it is completely loaded:
    • Put the RadSocialShare in a div that is positioned outside of the visible part of the page:
    <div id="hiddenDiv" style="position:absolute;top:-10000px;left:-10000px">
        <telerik:RadSocialShare ID="SocialShare" runat="server">
                <telerik:RadFacebookButton />
                <telerik:RadLinkedInButton />
                <telerik:RadTwitterButton />
    • Return the initial RadSocialShare's positions after an appropriate timeout:
    <script type="text/javascript">
    function pageLoad(editor){
            $get("hiddenDiv").style.position = "static";
        }, 1500);

    You can also find the full VS example in the attached archive.

    Danail Vasilev
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top