Add Rounded Corners with CSS

Environment

Product Version 2019.3.1023
Product Window for Progress® Kendo UI®

Description

How can I set the Kendo UI Window's corners so they appear more curved?

Solution

Using CSS, set the Kendo UI Window to have more defined rounded corners.

      .k-window {
        border-radius: 20px;
        overflow: hidden;
      }

Example

    <style>
      .k-window {
        border-radius: 20px;
        overflow: hidden;
      }
    </style>

    <div id="example">
      <div id="window">
        <p>Alvar Aalto is one of the greatest names in modern architecture and design. Glassblowers at the iittala factory still meticulously handcraft the legendary vases that are variations on one theme, fluid organic shapes that let the end user decide the use. Interpretations of the shape in new colors and materials add to the growing Alvar Aalto Collection that remains true to his original design.</p>

        <p>Born Hugo Alvar Henrik Aalto (February 3, 1898 - May 11, 1976) in Kuortane, Finland, was noted for his humanistic approach to modernism. He studied architecture at the Helsinki University of Technology from 1916 to 1921. In 1924 he married architect Aino Marsio.</p>

        <p>Alvar Aalto was one of the first and most influential architects of the Scandinavian modern movement, and a member of the Congres Internationaux d'Architecture Moderne. Major architectural works include the Finlandia Hall in Helsinki, Finland, and the campus of Helsinki University of Technology.</p>

        <p>Source: <a href="https://www.aalto.com/about-alvar-aalto.html" title="About Alvar Aalto">www.aalto.com</a></p>
      </div>

      <span id="undo" style="display:none" class="k-button hide-on-narrow">Click here to open the window.</span>

      <div class="responsive-message"></div>

      <script>
        $(document).ready(function() {
          var myWindow = $("#window"),
              undo = $("#undo");

          undo.click(function() {
            myWindow.data("kendoWindow").open();
            undo.fadeOut();
          });

          function onClose() {
            undo.fadeIn();
          }

          myWindow.kendoWindow({
            width: "600px",
            title: "About Alvar Aalto",
            visible: false,
            actions: [
              "Pin",
              "Minimize",
              "Maximize",
              "Close"
            ],
            close: onClose
          }).data("kendoWindow").center().open();
        });
      </script>
    </div>
In this article
Not finding the help you need? Improve this article