Merge cells in a kendoGrid.

1 Answer 210 Views
Grid
SANDRO
Top achievements
Rank 2
Iron
Iron
Iron
SANDRO asked on 15 Jun 2023, 07:06 PM

Hello good day.

I have a KendoGrid where there are two rows for each record, the first two fields are repeated, I would like to merge two cells and make a single row with them, but the rest of the fields belonging to those records remain in their two different rows.

I show how it looks right now:

 

I show how I want it to look:

 

Thank you so much.

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 20 Jun 2023, 05:43 AM

Hi Sandro,

At this stage, merging rows in the Grid is not officially supported, however, you can implement some custom logic to achieve this. Below I am posting two SO threads discussing this topic: 

In addition, there is already a feature request in our Feedback Portal for this a highly recommend you cast your vote for it. Usually, the items that gain lots of popularity are included in the roadmap for implementation.

Alternatively, another recommendation would be to store a collection of the repeated records in the model definition and display them as comma-separated values within a given column. You can think of it as a circular relation.

We have a readily available sample in our official GitHub Repository that tackles such an approach:

Here is a list of all the configuration files:

I hope this information helps.

Kind Regards,
Alexander
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.
Tags
Grid
Asked by
SANDRO
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Alexander
Telerik team
Share this question
or