@*   Xafari Framework version : 17.2.3011.1336   *@

@using Xafari.Mvc.Templates

@model ModelForNotifyWindowCloseControl

@Html.DevExpress().CallbackPanel(settings =>
{
	settings.SettingsLoadingPanel.Enabled = false;
	
	settings.Name = "NotifyWindowCloseControl";
	settings.CustomJSProperties += delegate(object sender, CustomJSPropertiesEventArgs args)
	{
		args.Properties.Add("cpServerWindowID", PopupWindowManager.GetWindowId(this.Model.MvcWindow));
		args.Properties.Add("cpStartupScripts", this.Model.CpStartupScripts);
		
		
	};
    settings.ClientSideEvents.BeginCallback = "function(s,e) { xafari.startProgress(); }";
    settings.ClientSideEvents.EndCallback = "function(s,e) { xafari.stopProgress(); if (s.cpStartupScripts) { setTimeout(s.cpStartupScripts, 0); } }";
    settings.CallbackRouteValues = new { Controller = XafariRouteConfig.ApplicationController, Action = "NotifyWindowClose", windowId = this.ViewData.Window().WindowId()};

}).GetHtml()
