Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mani

Pages: [1]
1
Never mind! I got the problem. I have missed the dataInx.

2
Help for ParamQuery Grid (free version) / 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"}]

Pages: [1]