Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I can't retrieved the data in jqgrid.

The data is xml file,please let know.

Thanks,
Arunkumar kanigiri.
Posted

1 solution

If your using Jquery plugin means check the mention path is correct or not
or else
Find the below sample code


CSS
jQuery("#gridid").jqGrid({
...
   xmlReader : {
      root: "rows",
      colModel : [ {name:'amount',..., xmlmap:'amt'...}...],  //put your fields to Display 
      row: "row",
      page: "rows>page",
      total: "rows>total",
      records : "rows>records",
      repeatitems: true,
      cell: "cell",
      id: "[id]",
      userdata: "userdata",
      subgrid: {
         root:"rows",
         row: "row",
         repeatitems: true,
         cell:"cell"
      }
   },
...
});
 
Share this answer
 
Comments
Arunkumar Kanigiri 3-Jun-13 7:05am    
I need sample xml file also.
Member 11944124 5-Sep-15 12:58pm    
Is there a way to populate jqgrid table with only specific rows of the xml file based on the id

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900