experiment_id: web-retrieval-v1
fixture_id: /demos/web-component-grid-layout-row
mode: provenance
representation: html
origin_response_id: 0258a1c40aefffaa6906379d7c124da1
version: 2026-10-21
version_created_at_utc: 2026-10-21T20:42:35.572Z
version_nonce: cea23a60ae38b999bee2869f7bc0fbdf
generated_at_utc: 2026-12-05T02:59:52.844Z
response_nonce: 309bf9c85732c69646a0617e8525c0b8

Row Layout

92 of 125
If you don't want ZingGrid to switch between layouts when you resize your screen, you can force a row layout with a layout="row" attribute on the <zing-grid> tag.
Result Full HTML CSS JS
Edit Download

Full Code

<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>ZingGrid: Simple Grid</title>
  <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
  <style>
    .zg-body {
      background: #e6e6e6;
    }

    zing-grid[loading] {
      height: 451px;
    }
  </style>
</head>

<body class="zg-body">
  <zing-grid caption="Top LiverPool Forwards" layout="row" sort src="https://storage.googleapis.com/zinggrid-pwa.appspot.com/liverpool_forwards.json">
    <zg-colgroup>
      <zg-column index="playerImg" header=" " width="100" height="100" sort="disabled" type="image" type-image-mask="circle" type-image-alt="Player Img N/A"></zg-column>
      <zg-column index="firstName, lastName" header="Name">
        <template>
          [[index.firstName]] [[index.lastName]]
        </template>
      </zg-column>
      <zg-column index="number"></zg-column>
      <zg-column index="position" sort="disabled"></zg-column>
    </zg-colgroup>
  </zing-grid>
  <script>
    ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
  </script>
</body>

</html>
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>ZingGrid: Simple Grid</title>
    <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
  </head>
  <body class="zg-body">
    <zing-grid
      caption="Top LiverPool Forwards"
      layout="row"
      sort
      src="https://storage.googleapis.com/zinggrid-pwa.appspot.com/liverpool_forwards.json"
    >
      <zg-colgroup>
        <zg-column 
        	index="playerImg"
          header=" "
          width="100"
          height="100"
          sort="disabled"
          type="image"
          type-image-mask="circle"
          type-image-alt="Player Img N/A"></zg-column>
        <zg-column index="firstName, lastName" header="Name">
        	<template>
          	[[index.firstName]] [[index.lastName]]
          </template>
        </zg-column>
        <zg-column index="number"></zg-column>
        <zg-column index="position" sort="disabled"></zg-column>
      </zg-colgroup>
    </zing-grid>
  </body>
</html>
.zg-body {background:#e6e6e6;}
// No JS code

Interested in this demo? Modify it to your needs in ZingSoft Studio, our testing sandbox. It's free to sign up, and you can come back and edit at any time!

Edit in Studio

Demo Gallery