Kendo for Angular-Grid:每个数据项两行

问题描述 投票:0回答:1

是否可以为Angular在kendo网格中为每个数据项渲染两行?网格非常狭窄,我们需要为每个数据项提供文字说明,在多余的列中没有空格。

示例:

<table border=1>
  <tr>
    <th>ID</th>
    <th>Name</th>
  </tr>
  <tr>
    <td>1</td>
    <td>John</td>
  </tr>
  <tr>
    <td colspan="2">This is the first employee.</td>
  </tr>
  <tr>
    <td>2</td>
    <td>Jane</td>
  </tr>
  <tr>
    <td colspan="2">This is the second employee.</td>
  </tr>
</table>
angular telerik kendo-grid kendo-angular-ui
1个回答
0
投票

我最终使用明细行模板添加了文字说明。默认情况下,详细信息行在组件中展开。

© www.soinside.com 2019 - 2024. All rights reserved.