_PopupButtonPanel.cshtml 813 B

123456789101112131415161718192021222324252627
  1. @model GreenTree.Nachtragsmanagement.Web.Models.Global.PopupModel
  2. <div class="popupButtonPanel">
  3. @Html.DevExpress().Button(b =>
  4. {
  5. b.Name = "devButtonClose";
  6. b.Text = "Abbrechen";
  7. b.Width = new Unit(100, UnitType.Pixel);
  8. b.ControlStyle.CssClass += "devExFloatRight devExPopupPanelButton";
  9. b.ClientSideEvents.Click = "function (s, e) { " + Model.PopupName + ".Hide(); }";
  10. }).GetHtml()
  11. @Html.DevExpress().Button(b =>
  12. {
  13. b.Name = "devButtonAccept";
  14. b.Text = "Ok";
  15. b.Width = new Unit(100, UnitType.Pixel);
  16. b.ControlStyle.CssClass += "devExFloatRight devExPopupPanelButton";
  17. if (String.IsNullOrEmpty(Model.AcceptFunctionName))
  18. {
  19. b.UseSubmitBehavior = true;
  20. }
  21. else
  22. {
  23. b.ClientSideEvents.Click = "function (s, e) { " + Model.AcceptFunctionName + "(); }";
  24. }
  25. }).GetHtml()
  26. </div>