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

283
Visualizações
Is there a way to span a column for a single row in a Kendo Grid?

I wanted to find a way to span a column for only 1 row of data in Kendo Grid for Angular. I looked into using kendo-grid-span-column but that seems to do it for every row for the columns specified. I've also looked into using kendoGridFooterTemplate but it doesn't seem like there is support for spanning that quite yet. I've posted a picture of an example below:

Example

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

You should be able to accomplish this by manually adding colspan attribute during the data bound event.

See below example for where I use a boolean data field named isSpecial to determine if that row needs to be altered:

function onDataBound(e) {
  var grid = $("#myGrid").data("kendoGrid");

  // Iterate through all the rows
  var rows = grid.items();
  $(rows).each(function (e) {
     var row = this;
     var data = grid.dataItem(row);

     // Check if this row needs to be altered
     if (data.isSpecial) {
        // Set the column span
        $(row).find("td:first-child").attr("colspan", "5");
     }
  });
}
over 4 years ago · Santiago Trujillo Relatório
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