This is a migrated thread and some comments may be shown as answers.

RadSocialShare mess while loading

1 Answer 17 Views
SocialShare
This is a migrated thread and some comments may be shown as answers.
Log
Top achievements
Rank 1
Log asked on 07 Jul 2013, 04:42 PM
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?

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 11 Jul 2013, 07:48 AM
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">
        <MainButtons>
            <telerik:RadFacebookButton />
            <telerik:RadLinkedInButton />
            <telerik:RadTwitterButton />
        </MainButtons>
    </telerik:RadSocialShare>
</div>
  • Return the initial RadSocialShare's positions after an appropriate timeout:
<script type="text/javascript">
function pageLoad(editor){
    setTimeout(function(){
        $get("hiddenDiv").style.position = "static";
    }, 1500);
}
</script>

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

Regards,
Danail Vasilev
Telerik
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.
Tags
SocialShare
Asked by
Log
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or