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

auto scroll , is it possible?

5 Answers 77 Views
Slider
This is a migrated thread and some comments may be shown as answers.
musaied
Top achievements
Rank 1
musaied asked on 15 May 2011, 01:12 PM
hi there , im trying to make my slideshow
http://demos.telerik.com/aspnet-ajax/slider/examples/slideshow/defaultcs.aspx
auto scroll for every 5 seconds , ive tryed to change few setting but without succsess
is there any way i can do this
thanks

5 Answers, 1 is accepted

Sort by
0
Niko
Telerik team
answered on 17 May 2011, 01:23 PM
Hello Musaied,

Please, refer to the following line in the slide show demo:
slideInterval = window.setInterval('SelectNextSlide()', 1000);
I have highlighted the place where the frame time is specified in milliseconds. In case you wish to have it stay for 5 seconds you need to change this to 5000.

Hope this helps.


Best wishes,
Niko
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
musaied
Top achievements
Rank 1
answered on 18 May 2011, 04:48 AM
thanks , this help me
but still i cant make it work the way i want

1-i want it to play on pageload
2-i want the user to slide without clicking pause
3-every time the user slide , the interval timer reset
0
Niko
Telerik team
answered on 19 May 2011, 11:45 AM
Hi Musaied,

Here is a brief overview what you need to do in order to implement all these features:
  1. Create another event handler for the slider OnClientLoad event. There call the currently set event handler and after that call the ToggleSlideShow method not forgetting the reference to the button as parameter.
  2. Remove the call to the slider's set_enabled method within the ToggleSlideShow method.
  3. Remove the call to StopSlideShow from both SelectNextSlide and SelectPreviousSlide
Hope this helps.

Best wishes,
Niko
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
musaied
Top achievements
Rank 1
answered on 08 Jun 2011, 03:38 PM
thanks for the tips
unfortunately i have now idea how to code javascript

ive tried to do it in c# . but i have to postback every time which is not very good
it will be much easier in javascript but i dont know how to do it
0
Niko
Telerik team
answered on 08 Jun 2011, 04:13 PM
Hi Musaied,

JavaScript is an essential part of Telerik ASP.NET AJAX RadControls. They rely heavily on this language and having a good knowledge of it is very important. Therefore I will suggest to you to improve your understanding of JavaScript through the following sites and tutorials:
  1. http://www.w3schools.com/js/default.asp
  2. https://developer.mozilla.org/en/JavaScript
  3. http://msdn.microsoft.com/en-us/library/bb398874.aspx
Hope this will be a positive experience for you.
Regards,
Niko
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Slider
Asked by
musaied
Top achievements
Rank 1
Answers by
Niko
Telerik team
musaied
Top achievements
Rank 1
Share this question
or