Hi,
I am trying to get the react treeview to work with json data and am having trouble. is there an example? or a plunker or something?
https://www.jqwidgets.com/react/react-tree/index.htm
the xml one is close:
https://www.jqwidgets.com/react/react-tree/react-tree-xmltree.htm
but the view is not getting the data
let source = {
datatype: ‘json’,
datafields: [
{ name: ‘CompanyName’ },
{ name: ‘ContactName’ },
{ name: ‘ContactTitle’ },
{ name: ‘City’ },
{ name: ‘PostalCode’ },
{ name: ‘Country’ }
],
url: ‘../sampledata/customers.json’,
async: false
};
// create data adapter.
let dataAdapter = new $.jqx.dataAdapter(source);
// perform Data Binding.
dataAdapter.dataBind();
thank you for your help