Hi I am using RadControls for ASP.NET Q3 2007
I would like to reset (stop and star) a timer whenever any server events (update, insert, cancel delete etc) for a grid take place.
My code is
it doesn't restart the timer somehow.
Am I missing something here??
Thanks
Toby
I would like to reset (stop and star) a timer whenever any server events (update, insert, cancel delete etc) for a grid take place.
My code is
<radA:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
<AjaxSettings> |
<radA:AjaxSetting AjaxControlID="ClassUnlockTimer"> |
<UpdatedControls> |
<radA:AjaxUpdatedControl ControlID="ClassUnlockTimer"/> |
</UpdatedControls> |
</radA:AjaxSetting> |
<radA:AjaxSetting AjaxControlID="RadGrid1"> |
<UpdatedControls> |
<radA:AjaxUpdatedControl ControlID="ClassUnlockTimer"/> |
</UpdatedControls> |
</radA:AjaxSetting> |
</AjaxSettings> |
</radA:RadAjaxManager> |
<radA:RadAjaxTimer runat="server" ID="ClassUnlockTimer" AutoStart="false" /> |
<radG:RadGrid ID="RadGrid1" runat="server" EnableAJAX="True".... |
protected void Page_Init(object sender, System.EventArgs e) |
{ |
ClassUnlockTimer.Tick += new RadAjaxTimer.TickDelegate(timer_Tick); |
ClassUnlockTimer.Interval = 40000; |
ClassUnlockTimer.Stop(); |
ClassUnlockTimer.Start(); |
} |
it doesn't restart the timer somehow.
Am I missing something here??
Thanks
Toby