_PopupButtonPanel.cshtml 835 B

1234567891011121314151617181920212223242526272829
  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.UseSubmitBehavior = false;
  10. b.ClientSideEvents.Click = "function (s, e) { " + Model.PopupName + ".Hide(); }";
  11. }).GetHtml()
  12. @Html.DevExpress().Button(b =>
  13. {
  14. b.Name = "devButtonAccept";
  15. b.Text = "Ok";
  16. b.Width = new Unit(100, UnitType.Pixel);
  17. b.ControlStyle.CssClass += "devExFloatRight devExPopupPanelButton";
  18. if (String.IsNullOrEmpty(Model.AcceptFunction))
  19. {
  20. b.UseSubmitBehavior = true;
  21. }
  22. else
  23. {
  24. b.UseSubmitBehavior = false;
  25. b.ClientSideEvents.Click = Model.AcceptFunction;
  26. }
  27. }).GetHtml()
  28. </div>