JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://jp.igniteui.com/js/modernizr.min.js"></script>
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
<script src="https://cdn-na.infragistics.com/igniteui/latest/js/infragistics.loader.js"></script>
<script src="https://jp.igniteui.com/js-data/northwind"></script>
<script src="https://cdn-na.infragistics.com/igniteui/latest/js/i18n/infragistics-ja.js"></script>
<table id="grid"></table>
JavaScript
$(function () {
$.ig.loader({
scriptPath: "https://cdn-na.infragistics.com/igniteui/latest/js/",
cssPath: "https://cdn-na.infragistics.com/igniteui/latest/css/",
resources: "igHierarchicalGrid.*",
ready: function () {
$("#grid").igHierarchicalGrid({
width: "100%",
dataSource: northwind,
initialDataBindDepth: -1,
responseDataKey: "results",
dataSourceType: "json",
autoGenerateColumns: false,
primaryKey: "EmployeeID",
columns: [
{ key: "EmployeeID", headerText: "ID", dataType: "number", width: "15%" },
{ key: "LastName", headerText: "名字", dataType: "string", width: "25%" },
{ key: "FirstName", headerText: "名前", dataType: "string", width: "25%" },
{ key: "HomePhone", headerText: "電話", dataType: "string", width: "35%" }
],
childrenDataProperty: "Orders",
autoGenerateLayouts: false,
columnLayouts: [
{
key: "Orders",
autoGenerateColumns: false,
primaryKey: "OrderID",
width: "100%",
columns: [
{ key: "OrderID", headerText: "ID", dataType: "number", width: "10%" },
{ key: "CustomerID", headerText: "顧客 ID", dataType: "string", width: "10%" },
{ key: "Freight", headerText: "発送", dataType: "string", width: "10%" },
{ key: "ShipName", headerText: "出荷名", dataType: "string", width: "20%" },
{ key: "ShipAddress", headerText: "配送先住所", dataType: "string",...