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

Client side access from RadRotator

2 Answers 48 Views
SocialShare
This is a migrated thread and some comments may be shown as answers.
Alin
Top achievements
Rank 1
Alin asked on 02 Jan 2012, 06:31 PM
Hello,

I have a scenario in which is necessary to set the url for social share control via client side! It's about a RadRotator which shows images ( I got the example from the demo section with ImageGallery) and since the rotator has client side events when changing item, I would like to set the url for the social share control on the OnClientItemShown event of the rotator control. Is this possible? Thx a lot. 

2 Answers, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 03 Jan 2012, 04:15 PM
Hi,

 
I already answered your other thread and for your convenience and for others who might need the same information, I pasted my reply below:

The social share control is a new one and we were recently contacted for the first time with a request for dynamic client-side change of the url and we already had other tasks with higher priorities set. That is why the functionality you ask about is in our TODO list and it will be most probably implemented for the Q1 release which is scheduled for the middle of February.

Kind regards,
Svetlina Anati
the Telerik team
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 their blog feed now
0
Svetlina Anati
Telerik team
answered on 10 Jan 2012, 01:27 PM
Hello Alin,

 
Hello Amar,

I am glad to inform you that we implemented the ability to change the url and title which are shared on the client and this is now being tested. The feature will be available in the upcoming Q1 release which is scheduled for the middle of February.

The functionality which we implemented is the following one:

1) You can use a client-side set_stringsToShare(url, title) method for the social share client object (both the parameters are optional and if null provided, the old setting will be kept). By using this method, the url/title are changed for all buttons in the corresponding social share and changes are immediately applied (even for counters for third party buttons).

2) For custom buttons (all but third party) you can similarly use the args.set_stringsToShare(url, title) method in the OnClientClicking event.

I hope that the provided information is detailed enough and helpful, in case you have any comments or recommendations, we I will be happy to hear them!

All the best,
Svetlina Anati
the Telerik team
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 their blog feed now
Tags
SocialShare
Asked by
Alin
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or