Hi lordbalmung,
This can probably be achieved by setting the datafield map. Here is a basic example:
var data = [{ "empName": "test", "age": "67", "department": { "id": "1234", "name": "Sales" }, "author": "ravi"}];
// prepare the data
var source =
{
datatype: "json",
datafields: [
{ name: 'empName' },
{ name: 'age' },
{ name: 'id', map: 'department>id' },
{ name: 'name', map: 'department>name' },
{ name: 'author' }
],
localdata: data
};
var dataAdapter = new $.jqx.dataAdapter(source);
For more information and examples, please refer to the jqxDataAdapter help topic.
Best Regards,
Dimitar
jQWidgets team
http://www.jqwidgets.com/