Datatable representation when the input json is not flat

Hi All

I want to represent JSON data in webix. but here the input JSON is not flat there is some sort of hierarchy in data. Please see this example here

http://webix.com/snippet/209694b4.

I am just thinking to create two sub columns under “cat” attribute like “c1” and “c2”. may me I am wrong here.

Please suggest me best way to represent data in datatable.

Thanks
Ravikiran

You could something like: http://webix.com/snippet/a2cb0025

try to change data structure and use rowspans
http://docs.webix.com/datatable__rowspans_colspans.html

It is possible to modify the datatype (as described here) and use the TreeTable. For example:

http://webix.com/snippet/eb385b2f

If you’re using Webix Pro, you can add colspans to the treetable or use the datatable with subviews instead:

http://webix.com/snippet/0e3d4e0e

Thanks a lot Listopad