jqGrid in Edge
No rows are shown.
by Patrick Sturm
HTML
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/themes/redmond/jquery-ui.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/free-jqgrid/4.14.0/css/ui.jqgrid.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/free-jqgrid/4.14.0/jquery.jqgrid.min.js"></script>
<table id="jqGrid"></table>
JavaScript
var soapResponseAsString = '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetListItemsResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/"><GetListItemsResult><listitems xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema"><rs:data ItemCount="1"><z:row ows_User="Patrick Sturm" ows_ID="18" ows_UniqueId="18;#{C0FD6682-A90F-4E66-9872-6264C0D86F1B}" ows_owshiddenversion="8" ows_FSObjType="18;#0" /></rs:data></listitems></GetListItemsResult></GetListItemsResponse></soap:Body></soap:Envelope>';
$("#jqGrid").jqGrid({
url: "/echo/xml/", // use JSFiddle echo service
datatype: "xml",
type: "POST",
mtype: "POST", // needed for JSFiddle echo service
ajaxGridOptions: {
contentType: 'text/xml; charset="utf-8"'
},
postData: {
xml: soapResponseAsString // needed for JSFiddle echo service
},
xmlReader: {
root: "rs\\:data",
row: "z\\:row",
repeatitems: false,
id: "[ows_ID]"
},
colNames: ["ID", "Benutzer"],
colModel: [{
name: 'ID',
hidden: true,
xmlmap: '[ows_ID]'
}, {
name: 'Benutzer',
index: 'User',
width: 80,
sortable: true,
xmlmap: '[ows_User]'
}],
gridview: true,
rowList: [10, 50, 100, 9999999],
autoencode: true,
viewrecords: true,
height: "auto",
autowidth: true,
ignoreCase: true,
hidegrid: false,
scrollOffset: 0,
emptyrecords: "Keine"
});