@model GreenTree.Nachtragsmanagement.Web.Models.Global.OptionDialogModel

<div class="popupButtonPanel">
	@foreach (var optionItem in Model.OptionItems)
	{
		Html.DevExpress().Button(b =>
		{
			b.Name = "devButtonDialog_" + optionItem.Name;
			b.Text = optionItem.Text;
			b.ControlStyle.CssClass += "devExFloatRight devExPopupPanelButton";
			b.UseSubmitBehavior = false;
			b.ClientSideEvents.Click = optionItem.Function;
		}).GetHtml();
	}
</div>