JSFiddle - React, Tailwind, and code Playground
by dkamburov
HTML
<script src="http://igniteui.com/js/modernizr.min.js"></script>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
<script src="http://cdn-na.infragistics.com/igniteui/latest/js/infragistics.core.js"></script>
<script src="http://cdn-na.infragistics.com/igniteui/latest/js/infragistics.lob.js"></script>
<script src="http://igniteui.com/js-data/northwind"></script>
<link href="http://cdn-na.infragistics.com/igniteui/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet"></link>
<link href="http://cdn-na.infragistics.com/igniteui/latest/css/structure/infragistics.css" rel="stylesheet"></link>
<br />
<h3>Single Cell Selection</h3>
<table id="cellSelectionGrid">
</table>
<br />
<h3>Multiple Row Selection</h3>
<table id="rowSelectionGrid">
</table>
JavaScript
$(function () {
/*----------------- Instantiation -------------------------*/
createCellSelectionGrid();
createRowSelectionGrid();
});
function createCellSelectionGrid() {
$( "#cellSelectionGrid" ).igHierarchicalGrid( {
width: "100%",
autoGenerateColumns: false,
dataSource: northwind,
responseDataKey: "results",
dataSourceType: "json",
features: [
{ name: "Filtering" }
],
columns: [
{ key: "EmployeeID", headerText: "Employee ID", dataType: "number", width: "0%", hidden: true },
{ key: "LastName", headerText: "Last Name", dataType: "string", width: "10%" },
{ key: "FirstName", headerText: "First Name", dataType: "string", width: "10%" },
{ key: "Title", headerText: "Title", dataType: "string", width: "20%" },
{ key: "Address", headerText: "Address", dataType: "string", width: "20%" },
{ key: "City", headerText: "City", dataType: "string", width: "10%" }
],
autoGenerateLayouts: false,
columnLayouts: [
{
key: "Orders",
autoGenerateColumns: false,
width: "500px",
height: "400px",
primaryKey: "OrderID",
columns: [
{ key: "OrderID", headerText: "Order ID", dataType: "number", width: "200px", hidden: true },
{ key: "Freight", headerText: "Freight", dataType: "string", width: "200px" },
{ key: "ShipName", headerText: "Ship Name", dataType: "string", width: "200px" },
{ key: "ShipAddress", headerText: "Ship Address", dataType: "string",...