Jgrid Problem Generating XML

前端 未结 2 2006
失恋的感觉
失恋的感觉 2021-01-17 00:51

i am using Jgrid. i am injecting the data to the Grid using Xml as we most of us do.

i want the batch update to database, my requirement that when i click on the \"S

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-17 01:40

    To export data to XML you can use jQuery("#test").jqGrid ('getGridParam', 'data') in combination with xmlJsonClass.json2xml from JsonXml.js which included to jqGrid.

    I created a working example which demonstrate this way: http://www.ok-soft-gmbh.com/jqGrid/ExportInXml.htm. You can use external button or a button in the jqGrid navigator to make the export. In the example I just display the exported data with respect of alert function. The same data as a file you find here.

提交回复
热议问题