Hello,
Is it possible to supply nested json data to the dataAdapter of a jqxInput?
I am trying to do something like this, but the jqxInput’s autocomplete only registers the 1st level of people and nothing within the children array:
let people = [
{name: 'John', id: '1', children: [{name: 'Tyler', id: '2', children: []}]},
{name: 'Susan', id: '3', children: []}
];
this.source = {
localdata: people,
datafields: [
{name: 'name'},
{name: 'id'},
{name: 'children', type: 'array' },
datatype: 'json',
hierarchy: { root: 'children'},
id: 'id'
};
this.dataAdapter = new $.jqx.dataAdapter(this.source, {autoBind: true});
This leads me to believe I am doing something wrong or this is not supported by jqxInput.