Forum



17:16

02/08/2010

Hi,
I've developed the following grid using Firefox for testing, but when I've tryed to run the same grid in IE, it didnt work as it did in FF. Here's the code, hope you guys can help me!
jQuery("#listRac").jqGrid({
url:'index.php?m='+module+'&s='+submodule+'&action=listJson&nd='+new Date().getTime(),
datatype: "json",
width: largura,
colNames:['','', 'Código', 'Registro','Título','Classificação','Responsável Dígitro',''],
height:220,
colModel:[
{name:'edit',index:'', width:'20',sortable:false},
{name:'idSituacao',index:'ID_SITUACAO', width:'20', align:'center'},
{name:'codigo',index:'CODIGO', width:'40', align:'left'},
{name:'dtEmissao',index:'DT_EMISSAO', width:'60', align:'left'},
{name:'DE_TITULO',index:'DE_TITULO', width:'200', align:'left'},
{name:'cdClassificacao',index:'CD_CLASSIFICACAO', width:'80', align:'left'},
{name:'nmResponsavelDigitro',index:'CD_FUNCIONARIO', width:'80', align:'left'},
{name:'msg',hidden:true}
],
pager: jQuery('#pagerRac'),
rowNum:10,
imgpath: webjs+"/jquery/plugins/jqGrid/themes/digitro/images",
sortname: 'CODIGO',
viewrecords: true,
sortorder: "desc",
multiselect: true,
subGrid : true,
subgridtype: 'json',
subGridUrl: 'index.php?m=racWeb&s=rac&action=buscaHistorico&nd='+new Date().getTime(),
subGridModel: [{
name : [' '],
width : ['*']
}],
loadError : function(xhr,st,err) {
jQuery("#displayMessages").html(xhr.responseText);
},
loadBeforeSend : function() {
$('#emptyGridRac').css('display','none');
},
loadComplete : function() {
atualizaGrid();
ids = $("#listRac").getDataIDs();
ret = $("#listRac").getRowData(ids[0]);
totalReg = $("#listRac").getGridParam('records');
if (totalReg == null) {
$("#emptyGridRac").html('<span style="color:red">Não foi encontrado registros para a consulta</span>');
$('#sp_2', $('#ctpg', $('#pagerRac'))).html('0');
$('.grid_htable').css('display','none');
$('#botaoEdit').css('display','none');
$('#emptyGridRac').css('display','');
} else {
$('.grid_htable').css('display','');
$('#botaoEdit').css('display','');
$('#emptyGridRac').css('display','none');
}
if (ret.msg !=""){
$("#displayMessages").html(ret.msg);
}
}
}).navGrid('#pagerRac',{edit:false,add:false,del:false,search:false, position:'left'});
P.S – There are no javascript errors in IE and don´t bother worring about the variables that I use to assemble the URL's, width and etc cause they are correct (double checked it) 😉
Regards
Nicolas
Most Users Ever Online: 715
Currently Online:
52 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66