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

Radrotator setscroll duration in javascript

1 Answer 33 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
visu
Top achievements
Rank 1
visu asked on 20 Sep 2011, 08:18 AM
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

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 22 Sep 2011, 05:41 PM
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
Tags
Rotator
Asked by
visu
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or