Collections
RadSocialShare offers two inner tags that are used to declare the list of buttons that are shown to the user. These are the MainButtons and CompactButtons collections. They both contain the <telerik:RadSocialButton />
items which are the actual buttons.
<telerik:RadSocialShare RenderMode="Lightweight" runat="server" ID="RadSocialShare1" UrlToShare="https://www.telerik.com/products/aspnet-ajax.aspx">
<MainButtons>
<telerik:RadSocialButton SocialNetType="ShareOnFacebook" />
<telerik:RadSocialButton SocialNetType="ShareOnTwitter" />
<telerik:RadSocialButton SocialNetType="SendEmail" />
<telerik:RadCompactButton />
</MainButtons>
<CompactButtons>
<telerik:RadSocialButton SocialNetType="LinkedIn" />
<telerik:RadSocialButton SocialNetType="Delicious" />
<telerik:RadSocialButton SocialNetType="Digg" />
</CompactButtons>
</telerik:RadSocialShare>
The buttons which are declared in the MainButtons collection are always visible on the page and are on the main bar of the RadSocialShare.
The buttons from the CompactButtons collection are shown in a RadWindow which also provides a search box to filter the available buttons by their name. In order to trigger the popup you need the <telerik:RadCompactButton />
in the MainButtons collection.
If CompactButtons collection is left empty all the Styled Buttons that are not in the MainButtons collection will be automatically populated in the popup.
The
There is another option to show the CompactButtons collection - by declaring a
See this help article for more information on the structure of the RadSocialShare.