I have a common function on the server that generates notification messages with RadNotification. Some of them work correctly, and some of them do not work. The ones that do not work show nothing - ever. The notifications are all on the same page, all call the same function to generate the notification, and do not throw an exception afterwards.
Any ideas on why this might be occurring?
The RadNotification is just inside the outermost div of the control.
Any ideas on why this might be occurring?
private
void
Notify(
string
strTitle,
bool
bsent =
true
)
{
if
(DevicesRadGrid.SelectedItems.Count > 1)
{
if
(bsent)
NotificationText.Text = String.Format(
"sent {0}"
, DevicesRadGrid.SelectedItems.Count);
else
NotificationText.Text =
"fail"
}
else
{
if
(bsent)
{
GridDataItem gdi = (GridDataItem)DevicesRadGrid.SelectedItems[0];
NotificationText.Text = String.Format(
"sent to {0}, gdi["
Client"].Text);
}
else
NotificationText.Text =
"fail"
;
}
NotificationWindow.Title = strTitle;
NotificationWindow.Visible =
true
;
NotificationWindow.VisibleOnPageLoad =
true
;
NotificationWindow.VisibleTitlebar =
true
;
NotificationWindow.TitleIcon = ResolveUrl(
"~/Images/status/statusInfo.png"
);
}
<
telerik:RadNotification
ID
=
"NotificationWindow"
VisibleOnPageLoad
=
"false"
Visible
=
"false"
Position
=
"TopCenter"
KeepOnMouseOver
=
"true"
runat
=
"server"
ShowCloseButton
=
"true"
AutoCloseDelay
=
"5000"
TitleIcon
=
"~/Images/status/statusInfo.png"
Width
=
"300px"
>
<
NotificationMenu
Visible
=
"false"
></
NotificationMenu
>
<
ContentTemplate
>
<
asp:Label
runat
=
"server"
Text
=
"This is some display text"
ID
=
"NotificationText"
></
asp:Label
>
</
ContentTemplate
>
</
telerik:RadNotification
>