Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

229
Visualizações
Facing problem in "DOMContentLoaded" in jquery. without this jqgrid is loading , when adding this "DOMContentLoaded" not loading

Facing problem in "DOMContentLoaded" in jquery. without this jqgrid is loading , when adding this "DOMContentLoaded" not loading

document.addEventListener("DOMContentLoaded", function() {
  $("#table").jqGrid({
    url: ROOT + 'PCM/DataToDisplayPCM',
    datatype: "JSON",
    height: 'auto',
    rowNum: 10,
    rowList: [10, 20, 30],
    colModel: [{
      name: 'ProdPriority',
      label: 'Priority',
      index: 'ProdPriority',
      width: 50
    }, {
      name: 'ProductCode',
      label: 'Product Code',
      index: 'ProductCode',
      width: 80
    }, {
      name: 'ProductName',
      label: 'Product Name',
      index: 'ProductName',
      width: 200
    }, {
      name: 'DIV',
      label: 'Division',
      index: 'Division',
      width: 60
    }, {
      name: 'Category',
      label: 'Categary',
      index: 'Category',
      width: 150
    }, {
      name: 'SubCategory',
      label: 'SubCategary',
      index: 'SubCategory',
      width: 150
    }, {
      name: 'Priority_1',
      label: 'Priority_1',
      index: 'Priority_1',
      width: 80
    }, {
      name: 'Priority1per',
      label: 'Priority_1%',
      index: 'Priority1per',
      width: 80
    }, {
      name: 'Priority_2',
      label: 'Priority_2',
      index: 'Priority_2',
      width: 80
    }, {
      name: 'Priority2per',
      label: 'Priority_2%',
      index: 'Priority2per',
      width: 80
    }, {
      name: 'Priority_3',
      label: 'Priority_3',
      index: 'Priority_3',
      width: 80
    }, {
      name: 'Priority3per',
      label: 'Priority_3%',
      index: 'Priority3per',
      width: 80
    }, ],
    pager: "#prowed1",
    sortname: 'P_CODE',
    viewrecords: true,
    sortorder: "desc"
  });
  
  jQuery("#table").jqGrid('navGrid', "#prowed1", {
    edit: false,
    add: false,
    del: false
  });
});

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda