This is a migrated thread and some comments may be shown as answers.
Client-side access?
8 Answers 54 Views
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 22 Nov 2011, 02:37 PM
Hello,

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

Sort by
0
Marin Bratanov
Telerik team
answered on 22 Nov 2011, 05:05 PM
Hello Chris,

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
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
Chris
Top achievements
Rank 1
answered on 23 Nov 2011, 01:10 PM
Hi Marin,

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.
0
Marin Bratanov
Telerik team
answered on 24 Nov 2011, 05:05 PM
Hello Chris,

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
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
Alin
Top achievements
Rank 1
answered on 02 Jan 2012, 05:06 PM
Hello Marin,

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.
0
Svetlina Anati
Telerik team
answered on 03 Jan 2012, 04:14 PM
Hello Alin,

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. 

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
Alin
Top achievements
Rank 1
answered on 03 Jan 2012, 10:36 PM
Ok, thx a lot for the feedback.
0
Svetlina Anati
Telerik team
answered on 10 Jan 2012, 01:28 PM
Hi guys,

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!

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
Alin
Top achievements
Rank 1
answered on 10 Jan 2012, 01:34 PM
That's some really good news :)
Looking forward to test it.
Thx.
Asked by
Chris
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Chris
Top achievements
Rank 1
Alin
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or