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

Telerik Social Share control

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[RequiredScript(typeof(jQueryPlugins))]
[RequiredScript(typeof(PopupBehavior))]
[ClientScriptResource("Telerik.Web.UI.RadSocialShare", "Telerik.Web.UI.SocialShare.RadSocialShare.js")]
[TelerikToolboxCategory("Miscellaneous")]
[ToolboxBitmap(typeof(RadSocialShare), "Toolbox.Icons.SocialShare.png")]
[EmbeddedSkin("SocialShare")]
[EmbeddedSkin("SocialShare", "Default")]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Classic, typeof(RadSocialShare))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Lightweight, typeof(RadSocialShare))]
public class RadSocialShare : RadWebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, ICallbackEventHandler

Inheritance: objectControlWebControlRadWebControlRadSocialShare

Implements: IAttributeAccessorICallbackEventHandlerIComponentIControlIControlBuilderAccessorIControlDesignerAccessorIControlResolverIDataBindingsAccessorIDisposableIExpressionsAccessorIParserAccessorIPostBackDataHandlerIScriptControlISkinnableControlIUrlResolutionService...

Inherited Members WebControl.AddAttributesToRender(HtmlTextWriter)WebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.LoadViewState(object)WebControl.TrackViewState()WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.RenderContents(HtmlTextWriter)WebControl.SaveViewState()WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.IsEnabledWebControl.SupportsDisabledAttributeWebControl.SkinIDWebControl.TabIndexWebControl.TagKeyWebControl.TagNameWebControl.ToolTipControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind()Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.OnInit(EventArgs)Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.OnLoad(EventArgs)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.OnBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.CreateChildControls()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadSocialShare()

Properties

Compact buttons collection.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public GenericSocialButtonsCollection<RadSocialButton> CompactButtons { get; }

Get/Set the height of the social dialog popup.

C#
[TypeConverter(typeof(UnitConverter))]
public Unit DialogHeight { get; set; }

Get/Set the left of the social dialog popup. It is centered by default.

C#
[TypeConverter(typeof(UnitConverter))]
public Unit DialogLeft { get; set; }

Get/Set the top of the social dialog. It is centered by default.

C#
[TypeConverter(typeof(UnitConverter))]
public Unit DialogTop { get; set; }

Get/Set the width of the social dialog popup.

C#
[TypeConverter(typeof(UnitConverter))]
public Unit DialogWidth { get; set; }

Email settings

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public RadSocialShareEmailSettings EmailSettings { get; }

Get/set the FacebookAppId of your Facebook application.

C#
[ClientControlProperty]
[ClientPropertyName("fbAppId")]
public string FacebookAppId { get; set; }

Get/set the web property ID for your Analytics account.

C#
[ClientControlProperty]
[ClientPropertyName("gaID")]
[Browsable(true)]
[Bindable(true)]
public string GoogleAnalyticsUA { get; set; }

Get/Set the height of the social share control.

C#
[TypeConverter(typeof(UnitConverter))]
public override Unit Height { get; set; }

Overrides: RadWebControl.Height

Get/Set whether IFRAMEs should be hidden while the compact popup or send email dialog is moved. The default value is true.

C#
[ClientControlProperty]
public bool HideIframesOnDialogMove { get; set; }

Main buttons collection.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public GenericSocialButtonsCollection<RadSocialButtonBase> MainButtons { get; }

Get/set the name of the JavaScript function that is called when the Facebook Like standard button is clicked.

C#
[ClientControlEvent]
[ClientPropertyName("fbLike")]
public string OnFacebookLike { get; set; }

Get/set the name of the JavaScript function that is called when the Facebook Send standard button is clicked.

C#
[ClientControlEvent]
[ClientPropertyName("fbSend")]
public string OnFacebookSend { get; set; }

Get/set the name of the JavaScript function that is called when the Facebook UnLike standard button is clicked.

C#
[ClientControlEvent]
[ClientPropertyName("fbUnLike")]
public string OnFacebookUnLike { get; set; }

Get/set the name of the JavaScript function that is called when the GooglePlus standard button is clicked for disapproval.

C#
[ClientControlEvent]
[ClientPropertyName("offPlusone")]
public string OnGooglePlusOneOff { get; set; }

Get/set the name of the JavaScript function that is called when the GooglePlus standard button is clicked for approval.

C#
[ClientControlEvent]
[ClientPropertyName("onPlusone")]
public string OnGooglePlusOneOn { get; set; }

Get/set the name of the JavaScript function that is called when the LinkedIn standard button is clicked.

C#
[ClientControlEvent]
[ClientPropertyName("linkedInShare")]
public string OnLinkedInShare { get; set; }

Get/set the name of the JavaScript function that is called after one of the Styled buttons is clicked. The event is raised after the OnSocialButtonClicking event and it cannot be cancelled.

C#
[ClientControlEvent]
[ClientPropertyName("clicked")]
public string OnSocialButtonClicked { get; set; }

Get/set the name of the JavaScript function that is called when one of the Styled buttons is clicked. The event is raised before the OnSocialButtonClicked event and it can be cancelled.

C#
[ClientControlEvent]
[ClientPropertyName("clicking")]
public string OnSocialButtonClicking { get; set; }

Get/set the name of the JavaScript function that is called when the Tweet standard button is clicked.

C#
[ClientControlEvent]
[ClientPropertyName("tweet")]
public string OnTweet { get; set; }

Get/Set orientation of the buttons. Horizontal by default.

C#
public Orientation Orientation { get; set; }

Get/Set the title of the shared message. The default value is an empty string which results in sharing the title of the current page or the url itself if there isn't a title.

C#
[ClientControlProperty]
public virtual string TitleToShare { get; set; }

Get/Set the url to share. The default value is empty string which results in sharing the page on which the button resides.

C#
[ClientControlProperty]
public string UrlToShare { get; set; }

Get/Set the width of the social share control.

C#
[TypeConverter(typeof(UnitConverter))]
public override Unit Width { get; set; }

Overrides: RadWebControl.Width

Get/set the Application ID of the Yammer application related to the RadSocialShare buttons

C#
[ClientControlProperty]
[ClientPropertyName("yammerAppId")]
public string YammerAppId { get; set; }

Methods

C#
protected void AddButtonItems()
C#
protected override void OnPreRender(EventArgs e)
Parameters:eEventArgs

Overrides: RadWebControl.OnPreRender(EventArgs)