<script type=
"text/javascript"
>
function
OnPopupClosing(sender, args)
{
eventArgs.set_cancel(
true
);
}
</script>
OnPopupClosing
-Event is only fired if the Popup closes after a date was selected._insertClickHandler:
function(e)
{
var modifiedLink = this.getModifiedLink();
if (modifiedLink.title != "") {
var args = new Telerik.Web.UI.EditorCommandEventArgs("LinkManager", null, modifiedLink);
//backwards compatibility
args.realLink = modifiedLink;
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close(args);
}
//added codes here
else {
alert(
'please fill the Tooltip field');
$telerik.cancelRawEvent(e);
}
},
But in the ImageManager.axcx, I cannot find the same method. I checked the code and I found the SetImageProperties.axcx have the same method but the method is not added to the insert button event handler.
Please help me out here.
Thanks