hi i am trying to use Notification .
And i am following same steps as shown in Demo. i put following code in show Event . But event is either not firing or function is not being called. I want to call Show event to get the notification centered.
function onShow(e) {
alert ("in loop");
var element = e.element.parent(),
eWidth = element.width(),
eHeight = element.height(),
wWidth = $(window).width(),
wHeight = $(window).height(),
newTop, newLeft;
newLeft = Math.floor(wWidth / 2 - eWidth / 2);
newTop = Math.floor(wHeight / 2 - eHeight / 2);
e.element.parent().css({top: newTop, left: newLeft});
}
var centered = $("#notification").kendoNotification({
stacking: "down",
show: onShow,
button: true
}).data("kendoNotification");
var notification = $("#notification").kendoNotification().data("kendoNotification");
notification.show("Assessment Saved successfully");
});
</scri
following is the Dojo link.
http://dojo.telerik.com/idEHE/5
Please help.
thanks,