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/nw-employees"></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>

	<h3>Multiple Row Selection with Row Selectors</h3>
	
	<table id="rowSelectionRowSelectorsGrid"></table>

JavaScript

$(function () {
			createRowSelectionRowSelectorsGrid();
	});
		

	function createRowSelectionRowSelectorsGrid() {
		$("#rowSelectionRowSelectorsGrid").igGrid({
			width: "100%",
			autoGenerateColumns: false,
			dataSource: northwindEmployees,
			responseDataKey: "results",
			dataSourceType: "json",
			columns: [
				{ headerText: "Employee ID", key: "ID", dataType: "number", width: "120px" },
				{ headerText: "Name", key: "Name", dataType: "string" },
				{ headerText: "Title", key: "Title", dataType: "string" },
				{ headerText: "Phone", key: "Phone", dataType: "string" }
			],
      headerRendered: function(evt, ui) {
      	ui.table.find("th.ui-iggrid-rowselector-header>span[name='hchk']").remove();
      },
			features: [
				{
					name: 'Responsive',
					enableVerticalRendering: false,
					columnSettings: [
						{
							columnKey: 'ID',
							classes: 'ui-hidden-phone'
						}
					]
				},
					{
						name: "Selection",
						mode: 'row',
						multipleSelection: true
					},
					{
						name: "RowSelectors",
						enableCheckBoxes: true,
						enableRowNumbering: false,
						enableSelectAllForPaging: true // this option is true by default
					},
					{
						name: "Paging",
						pageSize: 5
					}
			]
		});
	}