Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
<
telerik:RadMediaPlayer
ID
=
"RadMediaPlayer2"
runat
"server"
Width
"700px"
Height
"500px"
Source
"../Images/RadControls.mp4"
Poster
"../Images/Poster1.jpg"
>
</
telerik:RadNotification
"RadNotification1"
LoadContentOn
"TimeInterval"
"300"
Animation
"Fade"
OnClientUpdated
"OnClientUpdated"
Title
"Received messages"
OffsetX
"-20"
OffsetY
UpdateInterval
"3000"
AutoCloseDelay
"1500"
OnCallbackUpdate
"OnCallbackUpdate"
ContentTemplate
asp:Literal
"lbl"
></
protected
void
OnCallbackUpdate(
object
sender, RadNotificationEventArgs e)
{
int
newMsgs = DateTime.Now.Second % 10;
if
(newMsgs == 5 || newMsgs == 7 || newMsgs == 8 || newMsgs == 9) newMsgs = 0;
lbl.Text = String.Concat(
new
[] {
"You have "
, newMsgs,
" new messages!"
});
RadNotification1.Value = newMsgs.ToString();
}
function
OnClientUpdated(sender, args) {
var
message =
"Update (check) was done!"
;
newMsgs = sender.get_value();
(newMsgs != 0) {
sender.show();
message += (newMsgs == 1) ? (
" There is 1 new message!"
) : (
" There are "
+ newMsgs +
);
else
message +=
" There are no new messages!"