igGrid : cannot determine datasource type.
New Discussionhi everyone,
i’m trying to dynamically populate a grid depending on some arbitrary json output and getting
Uncaught Error: infragistics.core.js:253 Cannot determine the data source type. Please specify if it is JSON or XML data.
the json data is coming proxy.php which is doing this:
$url=”http://cnjtfs23:9090/AppManager/json/ListMonitor?apikey=f424a6c05c45381e78305a9653b56662&resourceid=10156726″;
$json=file_get_contents($url, false,$context);
echo json_encode($json);
$.ajax({
type: “GET”,
url: “proxy.php”,
contentType: “application/json; charset=utf-8”,
dataType: “json”,
success: function(res) {
$(“#monitorGrid”).igGrid({
dataType: “json”,
width: “80%”,
caption: “App Monitor”,
dataSource: res, //Array of objects defined abo
autoGenerateColumns: true
});
}
});
i don’t have a public access point to get to the json so i will paste as a response.
Any help is greatly appreciated.
thank you
Al
Uncaught Error: Cannot determine the data source type. Please specify if it is JSON or XML data.