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

284
Views
Does Kendo Grid support cell merge or not?

My Grid has the following structure

 $("#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á" }
       ]             
 });

Result: enter image description here

I want to merge rows with same value of column [PrepaidMonthName] (call as "Gói dịch vụ"). I don't know if kendo supports merge cells or not yet? What I expect:

enter image description here

Or is there another solution for me to do this?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I found the solution for myself by searching and experimenting, here is the answer to my question: Currently Kendo grid DOES NOT SUPPORT Merge cells yet, so I need to use pure JS to do this. I did the following:

       $("#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();
                }
            }
        });

The result: enter image description here

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!