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

Timer start via javascript

1 Answer 113 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Kevin Cauchi
Top achievements
Rank 1
Kevin Cauchi asked on 10 Aug 2011, 10:08 AM
Hi there, 

I recently updated to a new version of telerik and I noticed that the telerik timer no longer exists. 

I started using the .NET timer and I am facing some issues.

Previously I was able to start and stop the timer via javascript:

function StartFilteringTimer()
{
    <%= tmrFilter.ClientID %>.Start();
}
                     
function StopFilteringTimer()
{
    <%= tmrFilter.ClientID %>.Stop();
}                  

What would be the alternative to this in my situation?

Thanks in advance,

Kevin

1 Answer, 1 is accepted

Sort by
0
Accepted
Kevin
Top achievements
Rank 2
answered on 10 Aug 2011, 01:41 PM
Hello Kevin,

If you're using the ASP.NET Ajax Timer control, you're code should look something like this:

function StartFilteringTimer()
{
    $find("<%= tmrFilter.ClientID %>")._startTimer();
}
                       
function StopFilteringTimer()
{
   $find("<%= tmrFilter.ClientID %>")._stopTimer();
}

I hope that helps.
Tags
Ajax
Asked by
Kevin Cauchi
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Share this question
or