Hello,
I am new to PQ. I am facing an issue in displaying the data's in PQ. Below is the code. I can see the grid with Header but no record.
Any help in this greatly appreciated.
$.ajax({
type: "GET",
url: "http://,
dataType: "JSON",
error:function(request,error)
{
console.log(error);
},
success:function(data) {
var obj = {};
obj.width = 1000;
obj.height = 1000;
obj.colModel = [{title: "ProjectID", width: 100, dataType: "string"},
{title: "Project Name", width: 200, dataType: "string"},
{title: "Status", width: 150, dataType: "string"},
{title: "External Partner Name", width: 150, dataType: "string"},
{title: "Created Date", width: 150, dataType: "string"},
{title: "Submitted By", width: 150, dataType: "string"}];
obj.dataModel = {data: data};
$("#grid_array").pqGrid( obj );
}
});
JSON : Resonse data:
[{"ProjectID":"11","ProjectName":"Sample Project","StatusName":"Review","ExternalPartnerName":"Sample","CreatedDate":"2014-12-26 21:24:05","SubmitedBy":"Esample"}]