I'm hoping to use the SocialShare control in a client-side setting where I could set the url from javascript. Is this possible now? I didn't see any documentation in that regard. If not, is this something that is planned?
Thanks,
Chris
8 Answers, 1 is accepted
Currently the RadSocialShare does not expose any client-side API as there isn't a valid scenario which would use it. We recently received a request for setting the URL on the client and this feature will be implemented, yet currently I cannot provide an estimate when it will be available.
Please elaborate a little on the scenario which you would like to see implemented by the control so that we (as well as others) can get a better idea of your request and if its popuparity is high enough we will consider its implementation.
Regards,
Marin
the Telerik team
Yes, I think if we can set the url from the client-side, that work make what I'm trying to do work. I'm actually using jQuery templates for a search page (because I need it highly optimized) but would love to have the Social Share control integrated somehow instead of trying to integrate some other one, but in order to do this, I would both need to be able to set the url from the client and have it "refresh." (Ie, i would probably have a mouse over part of the search results that would "appear" the social share from the client and then set the url, etc)
For now, I'm just manually coding FB with javascript since that's the most common and am planning on using the Social Share on a more static view page.
Thank you for the feedback. I believe this online demo will be close to your scenario (showing the RadSocialShare on demand).
Stay tuned for the updates (which you can monitor in the Release Notes) and do not hesitate to contact us again if you have other suggestions on improving the RadSocialShare control.
Best wishes,
Marin
the Telerik team
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 images, 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.
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.
Svetlina Anati
the Telerik team
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!
Svetlina Anati
the Telerik team
Looking forward to test it.
Thx.