I have created a jqGrid and it works fine on FF, but i don't have the same result on IE.
The problem is that the grid load just the head on IE but dont load the content.
$(function(){
$("#statuslist").jqGrid({
url:'example.php',
autowidth:true,
datatype: 'xml',
mtype: 'GET',
colNames:['Serviço','Estado', 'Objetos','Primeiro','Inclusão','Dono','Identificador','Processado','Erro','Data do erro'],
colModel :[
{name:'servico', index:'servico', width:90, align:'right', sortable: false},
{name:'estado', index:'estado', width:90, align:'right', sortable: false},
{name:'QUANTIDADE', index:'QUANTIDADE', width:90, align:'right', sortable: false},
{name:'FILENAME', index:'FILENAME', width:90, align:'right', sortable: false},
{name:'AUTOENQTIME', index:'AUTOENQTIME', width:90, align:'right', sortable: false},
{name:'OBJUSERNAME', index:'OBJUSERNAME', width:90, align:'right', sortable: false},
{name:'OBJID', index:'OBJID', width:90, align:'right', sortable: false},
{name:'PROGRESS', index:'PROGRESS', width:90, align:'right', sortable: false},
{name:'LECODE', index:'LECODE', width:90, align:'right', sortable: false},
{name:'Datadoerro', index:'Datadoerro', width:90, align:'right', sortable: false}
],
xmlReader: {
root:"result",
row:"invoice",
page:"invoices>currentpage",
total:"invoices>totalpages",
records:"invoices>totalrecords",
repeatitems:false,
id : "asin"
},
rowNum:-1,
sortname: 'servico',
sortorder: 'desc',
viewrecords: true,
gridview: true
});
});
I load the grid with the method on my javascript using ajax
var mygrid = jQuery("#listlog")[0];
mygrid.addXmlData(xmlHttp.responseXML);
i don't really have the example.php file, mentioned on line
url:'example.php',
but works fine on FF, if i remove the line, the grid are not created.
i tryed to use
$("#statuslist").jqGrid({
autowidth:true,
datatype: 'local',
mtype: 'GET',
and the line on my javascript
var message = xmlHttp.responseText;
jQuery("#statuslist").jqGrid('setGridParam',{datatype:'xml'}).trigger('reloadGrid');
mygrid.addXmlData(xmlHttp.responseXML);
But didn't works too.
thanks