I’ve already seen the demo but not function.
Code:
var treeSource = { localdata: data, datatype: 'xml', datafields: [ { name: 'Signature', map: 'simpleSignature' }, { name: 'Category', map: 'category' } ], root: "function", record:"function", id: 'simpleSignature' }; var dataAdapter = new $.jqx.dataAdapter(treeSource); dataAdapter.dataBind();
var records = dataAdapter.getGroupedRecords(['Category'], 'items', 'label',[{ name: 'Signature', map: 'label'}]); $('#tree').jqxTree({ source: records, height: '300px', width: '300px', theme: theme });
The result is this:

image