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

AJAX timer and RADAJAXManager

5 Answers 564 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Zhengmao
Top achievements
Rank 1
Zhengmao asked on 17 Apr 2008, 06:15 PM
anybody can give me an example how to use ajax timer with RADAJAXManager or RAJAJAXPanel?

5 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 18 Apr 2008, 06:19 AM
Hello Zhengmao,

You can use it the same way as with the RadAjax for ASP.NET controls. Look at the demos below:

http://www.telerik.com/demos/aspnet/Ajax/Examples/AjaxTimer/TimerInPanel/DefaultCS.aspx
http://www.telerik.com/demos/aspnet/Ajax/Examples/AjaxTimer/TimerWithManager/DefaultCS.aspx

Regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Zhengmao
Top achievements
Rank 1
answered on 18 Apr 2008, 05:00 PM
I cannot use rad timer since I uses 2007 Q3, Prometheus, do I need to update to 2008 Q1 in order to use it?
0
Sebastian
Telerik team
answered on 21 Apr 2008, 06:24 AM
Hi Zhengmao,

Since RadAjaxTimer is not migrated to our RadControls for ASP.NET AJAX suite because it will mirror the regular MS AjaxTimer control behavior, you can attain the same functionality with RadAjax for ASP.NET AJAX in combination with MS AjaxTimer.

Should you have additional questions, do not hesitate to ask.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Vasu
Top achievements
Rank 1
answered on 08 Jul 2008, 05:14 PM
Hi,

Is there an example, how to user asp.net ajax timer control with RadAjax panel/Manager?

Thanks
Vasu
0
Konstantin Petkov
Telerik team
answered on 09 Jul 2008, 06:08 AM
Hello Vasu,

Basically, you can just replace the "Classic" RadAjaxManager with the new one. Here is a sample markup:

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadAjaxTimer2"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxTimer2"/> 
                    <telerik:AjaxUpdatedControl ControlID="Label2"/> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="Start2"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxTimer2"/> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="Stop2"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxTimer2"/> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
         
    <asp:Button ID="Start2" runat="server" OnClick="Start2_Click" Text="Start" /> 
    <asp:Button ID="Stop2" runat="server" OnClick="Stop2_Click" Text="Stop" /> 
    <br/> 
    <asp:Label ID="Label2" runat="server" Text="0"/> 
    <rad:RadAjaxTimer ID="RadAjaxTimer2" runat="server" OnTick="RadAjaxTimer2_Tick" AutoStart="False" Interval="1000"/> 
  


   protected void Start2_Click(object sender, EventArgs e) 
    { 
        Label2.Text = "1"
        RadAjaxTimer2.Start(); 
    } 
    protected void Stop2_Click(object sender, EventArgs e) 
    { 
        RadAjaxTimer2.Stop(); 
    } 
    protected void RadAjaxTimer2_Tick(object sender, Telerik.WebControls.TickEventArgs e) 
    { 
        int i = Int32.Parse(Label2.Text); 
        Label2.Text = (i + 1).ToString(); 
    } 

All the best,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Zhengmao
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Zhengmao
Top achievements
Rank 1
Sebastian
Telerik team
Vasu
Top achievements
Rank 1
Share this question
or