JSFiddle - React, Tailwind, and code Playground

by Zacc206

HTML

<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.2.710/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.2.710/styles/kendo.default.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.2.710/styles/kendo.dataviz.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.2.710/styles/kendo.mobile.all.min.css">
<script src="http://code.jquery.com/jquery-1.8.0.min.js"></script>
<script src="http://cdn.kendostatic.com/2012.2.710/js/kendo.all.min.js"></script>
<div id="grid1"></div>
<br />
<div id="grid2"></div>
<br />

JavaScript

$(document).ready(function () {
  $("#grid1").kendoGrid({
    dataSource: {
      type: "odata",
      transport: {
        read: "http://demos.telerik.com/kendo-ui/service/Northwind.svc/Customers"
      },
      pageSize: 20
    },
    height: 550,
      scrollable: true,
    groupable: true,
    sortable: true,
    pageable: {
      refresh: true,
      pageSizes: true,
      buttonCount: 5
    },
    columns: [{
      field: "ContactName",
      title: "Contact Name",
      width: 400
    }, {
      field: "ContactTitle",
      title: "Contact Title",
              width: 400
    }, {
      field: "CompanyName",
      title: "Company Name",
              width: 400
    }, {
      field: "Country",
      width: 400
    }]
  });
    
  $("#grid2").kendoGrid({
    dataSource: {
      type: "odata",
      transport: {
        read: "http://demos.telerik.com/kendo-ui/service/Northwind.svc/Customers"
      },
      pageSize: 20
    },
    height: 550,
      scrollable: true,
    groupable: true,
    sortable: true,
    pageable: {
      refresh: true,
      pageSizes: true,
      buttonCount: 5
    },
    columns: [{
      field: "ContactName",
      title: "Contact Name",
      width: 400
    }, {
      field: "ContactTitle",
      title: "Contact Title",
              width: 400
    }, {
      field: "CompanyName",
      title: "Company Name",
              width: 400
    }, {
      field: "Country",
      width: 400
    }]
  });
    
    var counter = 0;
    
    $('#grid1.k-grid-content').on('scroll', function(){
        while(counter < 10){
            alert("SCROLL!");
            counter++
        }
    });
    
});