I use a button click event to show RadNotification and start the auto updates. On hide event I stop the auto updates.
I have the default text configured, and I also reset it again to the same value in button click event, before starting auto updates and calling show().
The interval is 3 seconds, so I expect the text "Retreiving PIN number" to be displayed until the first auto update occurs, yet that does not work always. The firs time I load the page and the notification shows up, it is always empty. After that, only on occasion does the default text show up. Most of the times it shows the text from the last auto update. What may be the cause.
I have the default text configured, and I also reset it again to the same value in button click event, before starting auto updates and calling show().
The interval is 3 seconds, so I expect the text "Retreiving PIN number" to be displayed until the first auto update occurs, yet that does not work always. The firs time I load the page and the notification shows up, it is always empty. After that, only on occasion does the default text show up. Most of the times it shows the text from the last auto update. What may be the cause.
<
telerik:RadButton
ID
=
"ButtonPairAndroid"
runat
=
"server"
Text
=
"Pair Android Device"
Width
=
"230px"
OnClick
=
"ButtonPairAndroid_Click"
OnClientClicking
=
"CallClientShow"
CausesValidation
=
"False"
/>
<
telerik:RadNotification
ID
=
"RadNotification1"
runat
=
"server"
Height
=
"110px"
Position
=
"Center"
Text
=
"Retreiving PIN number"
Title
=
"Device Pairing"
Width
=
"350px"
AutoCloseDelay
=
"0"
OnCallbackUpdate
=
"OnCallbackUpdate"
UpdateInterval
=
"0"
LoadContentOn
=
"TimeInterval"
OnClientHidden
=
"OnClientHidden"
>
</
telerik:RadNotification
>
<
telerik:RadScriptBlock
ID
=
"block"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function CallClientShow(sender, args) {
var notification = $find("<%=RadNotification1.ClientID %>");
notification.set_updateInterval(3000);
notification.set_text("Retreiving PIN number");
notification.show();
args.set_cancel(false);
}
function OnClientHidden(sender, eventArgs) {
var notification = $find("<%=RadNotification1.ClientID %>");
notification.set_updateInterval(0);
}
</
script
>
</
telerik:RadScriptBlock
>