我正在使用kendo网格 . 我需要通过单元格绑定数据,而不是 tr 级别 . 默认情况下,dataItem在 tr 级别上分配 . 是否有可能将dataItem绑定到个人 td
如果我做 grid.dataItem(grid.select() ,我没有得到所选单元格的dataItem,我需要找到最接近的 tr 并获取dataItem,这不是我需要的 .
即,如果我在单元格上选择,可选择:'cell',我必须通过 grid.dataItem(grid.select()) 获取dataItem
1 回答
您正在使用的方法是 only if selection mode is not set to cell . 在您的情况下,您还需要执行一个步骤 - 选择行 .
Dojo example