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</h3>
	
	<table id="rowSelectionGrid"></table>

JavaScript

$(function () {
			createRowSelectionGrid();
	});
		

	function createRowSelectionGrid() {
		$("#rowSelectionGrid").igGrid({
			width: "100%",
			autoGenerateColumns: false,
			dataSource: northwindEmployees,
			responseDataKey: "results",
			dataSourceType: "json",
      tabIndex: -1,
			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" }
			],
			features: [
				{
					name: 'Responsive',
					enableVerticalRendering: false,
					columnSettings: [
						{
							columnKey: 'ID',
							classes: 'ui-hidden-phone'
						}
					]
				},
				{
					name: "Selection",
					mode: 'row',
					multipleSelection: true
				}
			]
		});
    
    $( "#rowSelectionGrid" ).keydown(function( event ) {
      if( event.key === "ArrowDown" ) {
        $( "#rowSelectionGrid" ).igGridSelection( "selectRow", 0 );
      }
    });
	}