layout String (default: '')

Specify the layout of listview content. Valid options are:

  • flex: This is equivalent to display: flex. It defines a flex container and enables a flex context for all its direct children. Think of flex items as primarily laying out either in horizontal rows or vertical columns.
  • grid: This is equivalent to display: grid. It defines the element as a grid container and establishes a new grid formatting context for its contents.

Note: Flex and grid layout are supporteed only on modern browsers. Even so, not all browsers that support flex and grid layout, support all features.

Example of ListView with flex layout

<script src=""></script>

<div id="listView"></div>
<div id="pager" class="k-pager-wrap"></div>

<script type="text/x-kendo-template" id="template">
    <div class="product">
        <img src=" ProductID #.jpg" alt="#: ProductName # image" />
        <p>#:kendo.toString(UnitPrice, "c")#</p>

  $(function() {
    var dataSource = new{
      data: products,
      pageSize: 9

      dataSource: dataSource

      dataSource: dataSource,
      layout: "flex",
      template: kendo.template($("#template").html())
    width: 100px;
  .product h3{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .9em;
In this article