如何在KendoUI中一起使用rowTemplate和detailTemplate?

num*_*ati 6 kendo-ui

我在使用带有细节网格的rowtemplate时遇到了麻烦.

基本上当我组合使用它们时,渲染就搞砸了.

请看这个小提琴,http://jsfiddle.net/yzKqV/,重现此错误(取消注释注释掉的行并再次运行以查看错误).

我该如何解决?

Dan*_*iel 10

我认为使用detailTemplate时rowTemplate不起作用的原因是因为它需要将tr和第一个td定义为层次结构网格.(http://jsfiddle.net/yzKqV/3/)

<script id="rowTemplate" type="text/x-kendo-tmpl">
    <tr class="k-master-row"> 
        <td class="k-hierarchy-cell"><a href="\#" class="k-icon k-plus"></a></td>
        <td> #= FirstName # </td>
        <td> #= LastName # </td> 
    </tr>
</script>
Run Code Online (Sandbox Code Playgroud)