Next
Update
Prev

KoolGrid uses XML, JSON, CSV, TSV formatted Dataset to represent a Grid, and gets the Dataset information from a variable or an URL of the file. This sample Grid demonstrates how to represent a Grid by calling the setData() method to get the Dataset information (TSV) from a string variable.

var jsVars = "KoolOnLoadCallFunction=gridReadyHandler";
jsVars += "&dataType=tsv";

function gridReadyHandler(id) {
  document.getElementById(id).setLayout(layoutStr);
  document.getElementById(id).setData(gridData);
  
}

var gridData = 'Amit	GMC-1 Release1	2006/12/07	2006/12/06	Jim	75126	1	1\n\
Amit	GMC-1 Release2	2006/12/07	2006/12/06	Jim	95822	1	2\n\
Amit	GMC-1 Release3	2006/12/11	2006/12/11	Jim	1862456	3	0\n\
Barb	GMC-1 Release3	2006/12/08	2006/12/08	Anant	65488	8	31';

© 2017 KoolChart. All rights reserved.