I have a webform with a timer and various other controls. When a button is pressed, the server Enables the timer. The timer is obviously activated, as postbacks start with the OnTick event. But once the timer starts ticking, none of the UI components are updated as defined by the ajax settings:
...
The intent here is that on each timer postback some activity will be done which may update an error message or an informational message, and some conditions may cause the timer itself to change interval or disable. But the labels are not updated, and neither is the timer.
I have a button defined as start/stop, and if I click that the timer does disable.
Note that I have the timer wrapped in a panel to accommodate the old issue where updating the timer throws an exception because it's trying to set a Visible property on the timer which doesn't exist.
What am I missing? I'm sure it's something simple... Thanks!
<
asp:Panel
ID
=
"pnlTimer"
runat
=
"server"
>
<
asp:Timer
ID
=
"Timer1"
runat
=
"server"
Interval
=
"2000"
OnTick
=
"Timer1_Tick"
Enabled
=
"false"
>
</
asp:Timer
>
</
asp:Panel
>
<
telerik:AjaxSetting
AjaxControlID
=
"Timer1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"pnlTimer"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"tbah"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"grPosts"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"lblErr"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"lblMsg"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
The intent here is that on each timer postback some activity will be done which may update an error message or an informational message, and some conditions may cause the timer itself to change interval or disable. But the labels are not updated, and neither is the timer.
I have a button defined as start/stop, and if I click that the timer does disable.
Note that I have the timer wrapped in a panel to accommodate the old issue where updating the timer throws an exception because it's trying to set a Visible property on the timer which doesn't exist.
What am I missing? I'm sure it's something simple... Thanks!