auto scroll , is it possible?

6 posts, 0 answers
  1. musaied
    musaied avatar
    3 posts
    Member since:
    May 2011

    Posted 15 May 2011 Link to this post

    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
  2. Niko
    Admin
    Niko avatar
    387 posts

    Posted 17 May 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. musaied
    musaied avatar
    3 posts
    Member since:
    May 2011

    Posted 17 May 2011 Link to this post

    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
  5. Niko
    Admin
    Niko avatar
    387 posts

    Posted 19 May 2011 Link to this post

    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.

  6. musaied
    musaied avatar
    3 posts
    Member since:
    May 2011

    Posted 08 Jun 2011 Link to this post

    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
  7. Niko
    Admin
    Niko avatar
    387 posts

    Posted 08 Jun 2011 Link to this post

    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.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017