Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

293
Views
¿Kendo Grid admite la combinación de celdas o no?

Mi Grid tiene la siguiente estructura

 $("#grid").kendoGrid({ dataSource: { data: data, type: 'json' }, pageable: true, columns: [ { field: "SubServiceTypeName", title: "Sub Type" }, { field: "PrepaidMonthName", title: "Gói dịch vụ" }, { field: "DeviceName", title: "Tên thiết bị" }, { field: "DeviceStatusName", title: "Tình rạng" }, { field: "IsDeployName", title: "Triển khai" }, { field: "PriceStatementName", title: "CL giá" } ] });

Resultado: ingrese la descripción de la imagen aquí

Quiero fusionar filas con el mismo valor de la columna [PrepaidMonthName] (llamar como "Gói dịch vụ"). No sé si kendo admite fusionar celdas o aún no. Lo que espero:

ingrese la descripción de la imagen aquí

¿O hay otra solución para que yo haga esto?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Encontré la solución por mí mismo buscando y experimentando, aquí está la respuesta a mi pregunta: Actualmente, la cuadrícula de Kendo DOES NOT SUPPORT la combinación de celdas todavía, por lo que necesito usar JS puro para hacer esto. Hice lo siguiente:

 $("#grid").kendoGrid({ dataSource: { data: data, type: 'json' }, pageable: true, columns: [ { field: "SubServiceTypeName", title: "Sub Type" }, { field: "PrepaidMonthName", title: "Gói dịch vụ" }, { field: "DeviceName", title: "Tên thiết bị" }, { field: "DeviceStatusName", title: "Tình rạng" }, { field: "IsDeployName", title: "Triển khai" }, { field: "PriceStatementName", title: "CL giá" }, ] }); const table = document.querySelector('.k-grid-content table'); let headerCell = null; for (let row of table.rows) { const firstCell = row.cells[1]; if (headerCell === null || firstCell.innerText !== headerCell.innerText) { headerCell = firstCell; } else { headerCell.rowSpan++; firstCell.remove(); } } });

El resultado: ingrese la descripción de la imagen aquí

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!