RealGrid2 Guide
Series column
series column

series column

A series column is a column that displays the values of one or more data fields simultaneously.

Series column settings

The type of the column is specified as "series", and the column to be displayed is specified with the fieldNames attribute. In fieldNames, specify a list of fields separated by commas. When specifying fields in the order of columns added to the data provider, you can use field1..fieldn.

//js
var columns = [
   ... skip ...
   {
     "name": "colSeries",
     "type": "series",
     "fieldNames": "2000,2001,2002,2003,2004",
     "width": 170,
     "header": {
         "text": "Series(2000~2004)",
         "styleName": "orange-column"
     },
   },
   {
     "name": "colSeries1",
     "type": "series",
     "fieldNames": "2005..2010",
     "renderer": {
         "valueSeparator": " | "
     },
     "width": 170,
     "header": {
         "text": "Series(2005~2010)",
         "styleName": "orange-column"
     },
   },
   ... skip ...
];
 
gridView.setColumns(columns);