Radrotator setscroll duration in javascript

2 posts, 0 answers
  1. visu
    visu avatar
    1 posts
    Member since:
    Sep 2011

    Posted 20 Sep 2011 Link to this post

    hai i am using radrotator with textbox and button. in button click event i am setting the textbox value(ex. 5000) to hidden field.

    And i am accessing that hidden field value in javascript to set the radrotator.set_Scrollduration(hiddenfieldvalue) but it is not working
  2. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 22 Sep 2011 Link to this post

    Hi,

    The ScrollDuration of the RadRotator can be configured through the client method get_scrollDuration, as you correctly guessed. You can get the new value on the client directly from the text box without storing it in a hidden field. Please make sure that you parse the string from the text box with the method parseInt, before passing it to get_scrollDuration. For your convenience I have attached an example of the suggested approach, which you can use as a reference.

    I hope that helps.

    Best wishes,
    Slav
    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
Back to Top