@*   Xafari Framework version : 17.2.3011.1336   *@

@model Xafari.ReportsV2.Mvc.MVCx.ReportDesignerDetailItem

@Html.DevExpress().ReportDesigner(settings =>
{
	settings.Name = "xafReportDesigner";

	settings.ShouldDisposeReport = true;
	settings.ControlStyle.CssClass = "dx-viewport";
	settings.CustomJSProperties += new CustomJSPropertiesEventHandler(this.Model.designer_CustomJSProperties);
	settings.Init += (sender, args) =>
	{
		var mvcxReportDesigner = sender as MVCxReportDesigner;
		if (mvcxReportDesigner == null) return;

		this.Model.ApplyCurrentTheme(mvcxReportDesigner);

		this.Model.LoadReport(mvcxReportDesigner);
	};
	settings.ClientSideEvents.CustomizeMenuActions = "function(s,e){{ xafCustomizeMenuActions(s, e); }}";
	settings.ClientSideEvents.Init = "function(s,e){{ xafInitReportDesigner(s, e); }}";
}).GetHtml()