Hello bluesand4,
You mentioned two widgets and for that reason the correct way is to use two DataAdapters.
If you can get the data with one request to the base you could get the data with AJAX and after that to set it with different DataAdapters to each one widget.
Also, I would like to suggest you try to use the mapping in the determinate different level of records of the data in the DataAdapter.
Please, take a look at this example:
var data = [
{
"state": {
"id": "x526",
"city": {
"name": "Beverly Hills",
"id": 90210,
"value": "Beverly Hills"
}
}
}
];
var source = {
datatype: 'json',
localdata: data,
datafields:
[
{
name: 'cityName', map: 'state>city>name'
}
]
};
var dataAdapter = new $.jqx.dataAdapter(source);
Best Regards,
Hristo Hristov
jQWidgets team
http://www.jqwidgets.com