DHTMLX Docs & Samples Explorer
Table of Contents

Syntax Templates

JSON

Object can contain any number of properties.
“id” property is used as ID of the object. If there is no such property then random IDs are created for each object.

[{
 "id":"1",
 "Name":"Dammann",
 "Department":"Legal Department",
 "Gender":"Male"
},{
 "id":"2",
 "Name":"Barby",
 "Department":"Human Resources",
 "Gender":"Female"
}]

XML

Tags of the top and second level can have any name.

<data>
	<item id="1">
		<Name><![CDATA[Dammann]]></Name>
		<Department><![CDATA[Legal Department]]></Department>
		<Gender><![CDATA[Male]]></Gender>
	</item>
	<item id="2">
		<Name><![CDATA[Barby]]></Name>
		<Department><![CDATA[Human Resources]]></Department>
		<Gender><![CDATA[Female]]></Gender>
	</item>
</data>

JSArray

Data in JSArray doesn't have names for columns, so they are autonamed: the first column is accessible as “data0”, the second as “data1” and etc. IDs are auto-generated.

[["1", "Dammann", "Legal Department", "Male"],
["2", "Barby", "Human Resources", "Female"]]

CSV

Data in CSV doesn't have names for columns, so they are autonamed: the first column is accessible as “data0”, the second as “data1” and etc. IDs are auto-generated.

"1", "Dammann", "Legal Department", "Male"
"2", "Barby", "Human Resources", "Female"