New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

OnSocialButtonClicking

OnSocialButtonClicking - fires when one of the RadSocialButtons is clicked. The event is raised before the OnSocialButtonClicked event and it can be canceled.

The event handler receives two parameters:

  1. sender - the RadSocialShare instance that fired the event.

  2. eventArgs - event arguments that expose the following methods:

    • get_cancel() - returns a bool value that indicates whether the event will be canceled. True means the event is canceled.

    • set_cancel(shouldCancel) - sets a bool value that indicates whether the event will be canceled. Setting true means the event will be canceled.

    • get_socialNetType() - returns the type of the clicked RadSocialButton.

    • get_url() - returns the shared URL.

    • set_stringsToShare(url, title) - changes the strings that will be shared - URL and Title. If any of them is omitted the old value is not changed.

See Also

In this article
See Also
Not finding the help you need?
Contact Support