TreeTable configuration

I’m new in Webix and tried to figure out how to initialize my database to work with treetable. Currently I have basic structure like Id, Topic, Body. Id if formed like i+1.

In TreeTable data you must give id’s in form 1.1.1 and so on… So should I change my database structure or can I use any other method? Was wondering if I can use it with parent id information, is that possible? And with parent Id generate tree structure in callback method? I’m using Ajax to fetch data from the database in JSON form.

Thank you in advance! If you can write me a small sample it would be awesome!

The TreeTable expects that you will load JSON data that is already grouped ( parent item object has “data” property with data of child items )

Also, you can load the plain json that contains id and parentId properties, and group the data on client side

http://docs.webix.com/samples/17_datatree/01_loading/07_load_group.html