Ajaxify Timer and Loading User Control

2 posts, 0 answers
  1. Noel Tam
    Noel Tam avatar
    2 posts
    Member since:
    Apr 2004

    Posted 15 Mar 2012 Link to this post

    Dear All

    I would like add a timer control to loop the different user control periodicity. I follow the Telerik Ajax Sample successful do that. In my user control, I have some Jquery/Javascripts would like to run. 

    I try to add function pageLoad() in my user control, but still can't run. How can I do that? Thanks

    Protected Sub Timer1_Tick(sender As Object, e As System.EventArgs) Handles Timer1.Tick
            If LatestLoadedControlName = "uc1.ascx" Then
                Me.Timer1.Interval = 15000
            End If
    End Sub

    <script type="text/javascript">
        function pageLoad() {

  2. Tsvetina
    Tsvetina avatar
    2481 posts

    Posted 20 Mar 2012 Link to this post

    Hello Noel,

    In a correctly working scenario, the pageLoad event is expected to fire. Can you confirm whether the OnResponseEnd client event of the RadAjaxManager/Panel fires in this context? You could use it to run your custom logic as well. If this does not work too, confirm that you do not get any client script errors.

    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.
Back to Top