2012-12-26 150 views
-1

我有一個數組列表,裏面有多個不同大小的數組列表。我需要在接受xml輸入的jqgrid中填充這些數據。可以做些什麼來實現這一點Jqgrid xml數據填充

回答

0

你看到數據源格式的Wiki嗎?

http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data#xml_string

下面是XML格式

<invoices> 
    <request>true</request> 
    ... 
    <currentpage>1</currentpage> 
    <totalpages>10</totalpages> 
    <totalrecords>20</totalrecords> 
    <result> 
     <invoice> 
     <asin>12345</asin> 
     <invoiceno>data1</invoiceno> 
     <invoicedate>data2</invoicedate> 
     <invoiceamount>data3</invoiceamount> 
     <invoicetax>data4</invoicetax> 
     <invoicetotal>data5</invoicetotal> 
     <notes>data6</notes> 
     </invoice> 
     ... 
    </result> 
</invoices>