Client-side access?

9 posts, 0 answers
  1. Chris
    Chris avatar
    66 posts
    Member since:
    Sep 2008

    Posted 22 Nov 2011 Link to this post

    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
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 22 Nov 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chris
    Chris avatar
    66 posts
    Member since:
    Sep 2008

    Posted 23 Nov 2011 Link to this post

    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.
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 24 Nov 2011 Link to this post

    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
  6. Alin
    Alin avatar
    26 posts
    Member since:
    Mar 2011

    Posted 02 Jan 2012 Link to this post

    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.
  7. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 03 Jan 2012 Link to this post

    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
  8. Alin
    Alin avatar
    26 posts
    Member since:
    Mar 2011

    Posted 03 Jan 2012 Link to this post

    Ok, thx a lot for the feedback.
  9. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 10 Jan 2012 Link to this post

    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
  10. Alin
    Alin avatar
    26 posts
    Member since:
    Mar 2011

    Posted 10 Jan 2012 Link to this post

    That's some really good news :)
    Looking forward to test it.
    Thx.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017