This is a migrated thread and some comments may be shown as answers.

Dynamically Add / Remove Columns and Cell merge of Kendo UI grid

5 Answers 683 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mojam
Top achievements
Rank 1
mojam asked on 03 Jan 2013, 02:48 AM
Hello experts,
I am involve with a project where me have to build up a system in which user will be able to dynamically add / remove columns and merge two or more cells of  Kendo UI grid. So that I tried to find better solution but didn't find any solution in google. Now my question is it is possible in Kendo UI grid. If possible how can I do this? Please suggest me asap.

Note : I am using Asp.net MVC3 and Entity Framework to develop my project.

Thanks in advance
Md. Mojammel Haque

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 03 Jan 2013, 03:49 PM
Hello,

 Merging cells in Kendo UI grid is not supported. As for adding and removing columns - do you want to do that client or server-side? Dynamically adding columns client-side is not supported. You can however easily add columns using the server-side configuration of the MVC Grid wrapper:

.Columns(columns  =>
{
       // add as many columns as you want during runtime:
      for (var columnSettings in Model.Columns)
      {
              columns.Bound(columnSetting.PropertyName);
      }
       
});

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Elko
Top achievements
Rank 1
answered on 11 May 2015, 02:25 PM

Dear Kendo-Team,

we also need merging cells. Since this thread has been started - is there any new functionality concerning this?

Best Regards!

0
Atanas Korchev
Telerik team
answered on 13 May 2015, 06:03 AM

Hello Elko,

No, cell merging isn't supported out of the box. The best we can offer is to set the rowTemplate of the grid and set the rowSpan and colSpan HTML attributes of the table cells (td elements).

Regards,
Atanas Korchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Bracken
Top achievements
Rank 1
answered on 27 Aug 2019, 02:47 PM

By chance will RowSpan be supported in the future? We are currently using Developer Express for our fat client and there is a feature that allows for the same values to be combined (see attached). I looked into manipulating the rowTemplate but it is my understanding it will cause issues with row selection, editing, data item retrieval etc...

Regards,

Bracken

 

0
Viktor Tachev
Telerik team
answered on 29 Aug 2019, 12:36 PM

Hi Bracken,

 

I am afraid that having a rowspan in the Grid widget is not in our immediate plans for implementation. 

With that said, there are different approaches you can use depending on your scenario. Below you can find different custom implementations that are suggested for merging the cells.

https://stackoverflow.com/questions/43632868/how-i-can-rowspan-kendo-grid-ui

https://www.codeproject.com/Questions/708865/How-to-merge-cells-in-Kendo-ui-Grid

 

Have in mind that both articles use custom approaches that you may need to adjust and customize further in order to fit your specific use case.

 

Regards,
Viktor Tachev
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
mojam
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Elko
Top achievements
Rank 1
Bracken
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or