• Edit
  • Download
  • <!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>
        body {
          background: #e6e6e6;
        }
    
        #result {
          background: #333232;
          color: white;
          font-family: monospace;
          margin-bottom: 2rem;
          padding: 1rem;
        }
    
        zing-grid[loading] {
          height: 307px;
        }
      </style>
    </head>
    
    <body>
      <zing-grid caption="ZingGrid Method - setBatchEdit()" editor-controls>
        <zg-data data='[
            {
              "name": "Maria",
              "number": 123
            },
            {
              "name": "Juanita",
              "number": 456
            },
            {
              "name": "Felicity",
              "number": 789
            }
          ]'>
        </zg-data>
      </zing-grid>
      <script>
        ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
        window.addEventListener('load', () => {
          const zgRef = document.querySelector('zing-grid');
          zgRef.executeOnLoad(() => {
            // Set to enable batch edit and add associated controls
            zgRef.setBatchEdit(true);
          });
        });
      </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>
      <zing-grid caption="ZingGrid Method - setBatchEdit()" editor-controls>
        <zg-data data='[
            {
              "name": "Maria",
              "number": 123
            },
            {
              "name": "Juanita",
              "number": 456
            },
            {
              "name": "Felicity",
              "number": 789
            }
          ]'>
        </zg-data>
      </zing-grid>
    </body>
    
    </html>
    body {
      background: #e6e6e6;
    }
    
    #result {
      background: #333232;
      color: white;
      font-family: monospace;
      margin-bottom: 2rem;
      padding: 1rem;
    }
    window.addEventListener('load', () => {
      const zgRef = document.querySelector('zing-grid');
      zgRef.executeOnLoad(() => {
        // Set to enable batch edit and add associated controls
        zgRef.setBatchEdit(true);
      });
    });