Forum

July 10th, 2011
You must be logged in to post Login Register

Search Forums:


 






jqGrid dont works fine in IE

UserPost

23:52
19/08/2011


rafaelzago

New Member

posts 1

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


About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

157


Currently Online:

darkwarrior

44 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 9592

Posts: 28785

Membership:

There are 10171 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1157

markw65 – 179

kobruleht – 144

phicarre – 126

YamilBracho – 124

Renso – 118

Administrators: admin (56 Posts)

Moderators: tony (7009 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information