RadTicker

3 posts, 0 answers
  1. Smiely
    Smiely avatar
    129 posts
    Member since:
    Nov 2010

    Posted 11 Apr 2011 Link to this post

    How can make RadTicker to stop ticking ?  I have hooked it to the timer I already have which is for 15 mins. I want RadTicker to start every 15 mins and stop after 5 mins. How can I do that ?

    Please help,
    Smiely
  2. Smiely
    Smiely avatar
    129 posts
    Member since:
    Nov 2010

    Posted 12 Apr 2011 Link to this post

    Anybody......
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Niko
    Admin
    Niko avatar
    387 posts

    Posted 13 Apr 2011 Link to this post

    Hi Smiely,

    The best way to accomplish what you are aiming at is through the client-side API of the RadTicker combined with the JavaScript methods setTimeout and setInterval. Here is how I prepared the attached sample page:
    1. At the load handler of the Sys.Application get a reference to the ticker. Request a stop of the ticker after the required interval and initialize the ticker looping, i.e. starting after another interval:
      Sys.Application.add_load(function()
      {
          var ticker = $find("<%= theTicker.ClientID %>");
          requestStopTicker(ticker);
          initializeTickerLooping(ticker);
      });
    2. Requesting the stop could utilize the setTimeout method, executing at the end of the time interval the stopTicker ticker method:
      function requestStopTicker(ticker)
      {
          setTimeout(Function.createDelegate(ticker, ticker.stopTicker), 5000);
      }
    3. Initializing the loop of the ticker will naturally require the setinterval method. Within the interval handler the ticker should be started using the startTicker method and the request for the stop should be executed as well:
      function initializeTickerLooping(ticker)
      {
          setInterval(function() { ticker.startTicker(); requestStopTicker(ticker); }, 10000);
      }

    Hope this helps.

    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