如何在Kendo ui Grid中合并单元格 [英] How to merge cells in Kendo ui Grid

查看:788
本文介绍了如何在Kendo ui Grid中合并单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Kendo ui Grid中合并单元格(行跨度或col跨度),我们该怎么做?

解决方案

合并Kendo中的单元格不支持UI网格



请阅读:动态添加/删除Kendo UI网格的列和单元格合并 [ ^ ]


是的,你是对的不支持在Kendo UI网格中合并单元格,所以最后我决定合并单元格在渲染剑道ui网格之后,所以我使用javascript来合并剑道ui网格的DataBound事件中的单元格。



函数defition我在数据绑定事件中调用:

函数mergeGridRows(gridId,colTitle){ 

' #' + gridId + ' > .k-grid-content> table')。each(function(index,item){

var dimension_col = 1 ;
// 首先,扫描维度列的第一行标题。

i want to merge cells(row span or col span) in Kendo ui Grid, how we can do this?

解决方案

Merging cells in Kendo UI grid is not supported

Please, read this: Dynamically Add / Remove Columns and Cell merge of Kendo UI grid[^]


yes, you are right "Merging cells in Kendo UI grid is not supported", so finally i had decided to merge cells after the rendering of kendo ui grid, so i used javascript to merge cells in DataBound event of kendo ui Grid.

function defition that i have called in databound event :

function mergeGridRows(gridId, colTitle) {


('#' + gridId + '>.k-grid-content>table').each(function (index, item) { var dimension_col = 1; // First, scan first row of headers for the "Dimensions" column.


这篇关于如何在Kendo ui Grid中合并单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆