Author Topic: The data is not displaying in PQ.  (Read 2361 times)

Mani

  • Newbie
  • *
  • Posts: 2
    • View Profile
The data is not displaying in PQ.
« on: December 27, 2014, 02:02:07 pm »
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"}]

Mani

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: The data is not displaying in PQ.
« Reply #1 on: December 27, 2014, 02:11:58 pm »
Never mind! I got the problem. I have missed the dataInx.