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
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);
}
});
Atanas Korchev
the Telerik team

Dear Kendo-Team,
we also need merging cells. Since this thread has been started - is there any new functionality concerning this?
Best Regards!
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

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
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