Skip to main content
formatação
Fonte Link
bfavaretto
  • 66,2mil
  • 11
  • 151
  • 228

var subgrid_table_id; subgrid_table_id = subgrid_id+"_t"; jQuery("#"+subgrid_id).html(""); jQuery("#"+subgrid_table_id).jqGrid({ url: urlRelatorioInterno, datatype: 'json', mtype: 'POST', colModel: [ {name:"dataHora", index:"dataHora", jsonmap:"dataHora", label:"Data e Hora", sortable: true, sorttype: "dataHora", width:80,key:true}, {name:"tipoSolicitacao",index:"tipoSolicitacao",jsonmap:"tipoSolicitacao",label:"Tipo Solicitacao", sortable: true, sorttype: "tipoSolicitacao" ,width:130}, {name:"statusSolicitacao",index:"statusSolicitacao",jsonmap:"statusSolicitacao",label:"Status Solicitacao", sortable: true, sorttype: "statusSolicitacao", width:80,align:"right"}, {name:"numeroSolicitacao",index:"numeroSolicitacao",jsonmap:"numeroSolicitacao",label:"Numero Solicitacao", sortable: true, sorttype: "numeroSolicitacao", width:80,align:"right"},
{name:"numeroCartao",index:"numeroCartao",jsonmap:"numeroCartao",label:"Numero Cartao", sortable: true, sorttype: "numeroCartao", width:100,align:"right",sortable:true}, {name:"nomeSegurado",index:"nomeSegurado",jsonmap:"nomeSegurado",label:"Nome Segurado", sortable: true, sorttype: "nomeSegurado", width:80,align:"right"}, {name:"codigoReferenciado",index:"codigoReferenciado",jsonmap:"codigoReferenciado",label:"Codigo Referenciado", sortable: true, sorttype: "codigoReferenciado", width:80,align:"right"}, {name:"nomeReferenciado",index:"nomeReferenciado",jsonmap:"nomeReferenciado",label:"Nome Referenciado", sortable: true, sorttype: "nomeReferenciado", width:80,align:"right"}, {name:"senha",index:"senha",jsonmap:"senha",label:"Senha", sortable: true, sorttype: "senha", width:80,align:"right"},
{name:"canalSolicitacao",index:"canalSolicitacao",jsonmap:"canalSolicitacao",label:"Canal Solicitacao", sortable: true, sorttype: "canalSolicitacao", width:80,align:"right"}],

      pager: "#paginacaoSub",
      width: 'auto',
      height: 'auto',
      rowNum:5,
      rowList: false,
      sortname: 'num',
      sortorder: "asc"
   });
 var subgrid_table_id;
 subgrid_table_id = subgrid_id + "_t";
 jQuery("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='paginacaoSub'></div>");
 jQuery("#" + subgrid_table_id).jqGrid({
     url: urlRelatorioInterno,
     datatype: 'json',
     mtype: 'POST',
     colModel: [{
         name: "dataHora",
         index: "dataHora",
         jsonmap: "dataHora",
         label: "Data e Hora",
         sortable: true,
         sorttype: "dataHora",
         width: 80,
         key: true
     }, {
         name: "tipoSolicitacao",
         index: "tipoSolicitacao",
         jsonmap: "tipoSolicitacao",
         label: "Tipo Solicitacao",
         sortable: true,
         sorttype: "tipoSolicitacao",
         width: 130
     }, {
         name: "statusSolicitacao",
         index: "statusSolicitacao",
         jsonmap: "statusSolicitacao",
         label: "Status Solicitacao",
         sortable: true,
         sorttype: "statusSolicitacao",
         width: 80,
         align: "right"
     }, {
         name: "numeroSolicitacao",
         index: "numeroSolicitacao",
         jsonmap: "numeroSolicitacao",
         label: "Numero Solicitacao",
         sortable: true,
         sorttype: "numeroSolicitacao",
         width: 80,
         align: "right"
     }, {
         name: "numeroCartao",
         index: "numeroCartao",
         jsonmap: "numeroCartao",
         label: "Numero Cartao",
         sortable: true,
         sorttype: "numeroCartao",
         width: 100,
         align: "right",
         sortable: true
     }, {
         name: "nomeSegurado",
         index: "nomeSegurado",
         jsonmap: "nomeSegurado",
         label: "Nome Segurado",
         sortable: true,
         sorttype: "nomeSegurado",
         width: 80,
         align: "right"
     }, {
         name: "codigoReferenciado",
         index: "codigoReferenciado",
         jsonmap: "codigoReferenciado",
         label: "Codigo Referenciado",
         sortable: true,
         sorttype: "codigoReferenciado",
         width: 80,
         align: "right"
     }, {
         name: "nomeReferenciado",
         index: "nomeReferenciado",
         jsonmap: "nomeReferenciado",
         label: "Nome Referenciado",
         sortable: true,
         sorttype: "nomeReferenciado",
         width: 80,
         align: "right"
     }, {
         name: "senha",
         index: "senha",
         jsonmap: "senha",
         label: "Senha",
         sortable: true,
         sorttype: "senha",
         width: 80,
         align: "right"
     }, {
         name: "canalSolicitacao",
         index: "canalSolicitacao",
         jsonmap: "canalSolicitacao",
         label: "Canal Solicitacao",
         sortable: true,
         sorttype: "canalSolicitacao",
         width: 80,
         align: "right"
     }],
     pager: "#paginacaoSub",
     width: 'auto',
     height: 'auto',
     rowNum: 5,
     rowList: false,
     sortname: 'num',
     sortorder: "asc"
 });

var subgrid_table_id; subgrid_table_id = subgrid_id+"_t"; jQuery("#"+subgrid_id).html(""); jQuery("#"+subgrid_table_id).jqGrid({ url: urlRelatorioInterno, datatype: 'json', mtype: 'POST', colModel: [ {name:"dataHora", index:"dataHora", jsonmap:"dataHora", label:"Data e Hora", sortable: true, sorttype: "dataHora", width:80,key:true}, {name:"tipoSolicitacao",index:"tipoSolicitacao",jsonmap:"tipoSolicitacao",label:"Tipo Solicitacao", sortable: true, sorttype: "tipoSolicitacao" ,width:130}, {name:"statusSolicitacao",index:"statusSolicitacao",jsonmap:"statusSolicitacao",label:"Status Solicitacao", sortable: true, sorttype: "statusSolicitacao", width:80,align:"right"}, {name:"numeroSolicitacao",index:"numeroSolicitacao",jsonmap:"numeroSolicitacao",label:"Numero Solicitacao", sortable: true, sorttype: "numeroSolicitacao", width:80,align:"right"},
{name:"numeroCartao",index:"numeroCartao",jsonmap:"numeroCartao",label:"Numero Cartao", sortable: true, sorttype: "numeroCartao", width:100,align:"right",sortable:true}, {name:"nomeSegurado",index:"nomeSegurado",jsonmap:"nomeSegurado",label:"Nome Segurado", sortable: true, sorttype: "nomeSegurado", width:80,align:"right"}, {name:"codigoReferenciado",index:"codigoReferenciado",jsonmap:"codigoReferenciado",label:"Codigo Referenciado", sortable: true, sorttype: "codigoReferenciado", width:80,align:"right"}, {name:"nomeReferenciado",index:"nomeReferenciado",jsonmap:"nomeReferenciado",label:"Nome Referenciado", sortable: true, sorttype: "nomeReferenciado", width:80,align:"right"}, {name:"senha",index:"senha",jsonmap:"senha",label:"Senha", sortable: true, sorttype: "senha", width:80,align:"right"},
{name:"canalSolicitacao",index:"canalSolicitacao",jsonmap:"canalSolicitacao",label:"Canal Solicitacao", sortable: true, sorttype: "canalSolicitacao", width:80,align:"right"}],

      pager: "#paginacaoSub",
      width: 'auto',
      height: 'auto',
      rowNum:5,
      rowList: false,
      sortname: 'num',
      sortorder: "asc"
   });
 var subgrid_table_id;
 subgrid_table_id = subgrid_id + "_t";
 jQuery("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='paginacaoSub'></div>");
 jQuery("#" + subgrid_table_id).jqGrid({
     url: urlRelatorioInterno,
     datatype: 'json',
     mtype: 'POST',
     colModel: [{
         name: "dataHora",
         index: "dataHora",
         jsonmap: "dataHora",
         label: "Data e Hora",
         sortable: true,
         sorttype: "dataHora",
         width: 80,
         key: true
     }, {
         name: "tipoSolicitacao",
         index: "tipoSolicitacao",
         jsonmap: "tipoSolicitacao",
         label: "Tipo Solicitacao",
         sortable: true,
         sorttype: "tipoSolicitacao",
         width: 130
     }, {
         name: "statusSolicitacao",
         index: "statusSolicitacao",
         jsonmap: "statusSolicitacao",
         label: "Status Solicitacao",
         sortable: true,
         sorttype: "statusSolicitacao",
         width: 80,
         align: "right"
     }, {
         name: "numeroSolicitacao",
         index: "numeroSolicitacao",
         jsonmap: "numeroSolicitacao",
         label: "Numero Solicitacao",
         sortable: true,
         sorttype: "numeroSolicitacao",
         width: 80,
         align: "right"
     }, {
         name: "numeroCartao",
         index: "numeroCartao",
         jsonmap: "numeroCartao",
         label: "Numero Cartao",
         sortable: true,
         sorttype: "numeroCartao",
         width: 100,
         align: "right",
         sortable: true
     }, {
         name: "nomeSegurado",
         index: "nomeSegurado",
         jsonmap: "nomeSegurado",
         label: "Nome Segurado",
         sortable: true,
         sorttype: "nomeSegurado",
         width: 80,
         align: "right"
     }, {
         name: "codigoReferenciado",
         index: "codigoReferenciado",
         jsonmap: "codigoReferenciado",
         label: "Codigo Referenciado",
         sortable: true,
         sorttype: "codigoReferenciado",
         width: 80,
         align: "right"
     }, {
         name: "nomeReferenciado",
         index: "nomeReferenciado",
         jsonmap: "nomeReferenciado",
         label: "Nome Referenciado",
         sortable: true,
         sorttype: "nomeReferenciado",
         width: 80,
         align: "right"
     }, {
         name: "senha",
         index: "senha",
         jsonmap: "senha",
         label: "Senha",
         sortable: true,
         sorttype: "senha",
         width: 80,
         align: "right"
     }, {
         name: "canalSolicitacao",
         index: "canalSolicitacao",
         jsonmap: "canalSolicitacao",
         label: "Canal Solicitacao",
         sortable: true,
         sorttype: "canalSolicitacao",
         width: 80,
         align: "right"
     }],
     pager: "#paginacaoSub",
     width: 'auto',
     height: 'auto',
     rowNum: 5,
     rowList: false,
     sortname: 'num',
     sortorder: "asc"
 });
Fonte Link

Formatação do subGrid no IE fica desconfigurada

var subgrid_table_id; subgrid_table_id = subgrid_id+"_t"; jQuery("#"+subgrid_id).html(""); jQuery("#"+subgrid_table_id).jqGrid({ url: urlRelatorioInterno, datatype: 'json', mtype: 'POST', colModel: [ {name:"dataHora", index:"dataHora", jsonmap:"dataHora", label:"Data e Hora", sortable: true, sorttype: "dataHora", width:80,key:true}, {name:"tipoSolicitacao",index:"tipoSolicitacao",jsonmap:"tipoSolicitacao",label:"Tipo Solicitacao", sortable: true, sorttype: "tipoSolicitacao" ,width:130}, {name:"statusSolicitacao",index:"statusSolicitacao",jsonmap:"statusSolicitacao",label:"Status Solicitacao", sortable: true, sorttype: "statusSolicitacao", width:80,align:"right"}, {name:"numeroSolicitacao",index:"numeroSolicitacao",jsonmap:"numeroSolicitacao",label:"Numero Solicitacao", sortable: true, sorttype: "numeroSolicitacao", width:80,align:"right"},
{name:"numeroCartao",index:"numeroCartao",jsonmap:"numeroCartao",label:"Numero Cartao", sortable: true, sorttype: "numeroCartao", width:100,align:"right",sortable:true}, {name:"nomeSegurado",index:"nomeSegurado",jsonmap:"nomeSegurado",label:"Nome Segurado", sortable: true, sorttype: "nomeSegurado", width:80,align:"right"}, {name:"codigoReferenciado",index:"codigoReferenciado",jsonmap:"codigoReferenciado",label:"Codigo Referenciado", sortable: true, sorttype: "codigoReferenciado", width:80,align:"right"}, {name:"nomeReferenciado",index:"nomeReferenciado",jsonmap:"nomeReferenciado",label:"Nome Referenciado", sortable: true, sorttype: "nomeReferenciado", width:80,align:"right"}, {name:"senha",index:"senha",jsonmap:"senha",label:"Senha", sortable: true, sorttype: "senha", width:80,align:"right"},
{name:"canalSolicitacao",index:"canalSolicitacao",jsonmap:"canalSolicitacao",label:"Canal Solicitacao", sortable: true, sorttype: "canalSolicitacao", width:80,align:"right"}],

      pager: "#paginacaoSub",
      width: 'auto',
      height: 'auto',
      rowNum:5,
      rowList: false,
      sortname: 'num',
      sortorder: "asc"
   });

Esse é meu código do subGrid, onde ele é aberto dentro de outra tabela.No IE a formatação dele sai toda desconfigurada ja no mozila se comporta perfeitamente. Alguem sabe me imformar se o subGrid ou o jqGrid tem alguma incompatibilidade com o IE?