This is a migrated thread and some comments may be shown as answers.

Detail Template (with row template)

3 Answers 166 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Federico
Top achievements
Rank 1
Federico asked on 25 Oct 2017, 01:51 PM

Can I attach a row-template to a detail-template?

 

<script id="templateSubGrid" type="text/x-kendo-template">
            <h4>ciao ciao </h4>
            <div id="Subgrid"
                data-role="grid"
                data-row-template="rowTemplate"
                data-bind="source: Grid.source"
                data-columns="[
                                { 'field': 'documenti','title':' documentiName'},
                                { 'field': 'documenti','title':'documentiSurname'},
                                { 'field': 'documenti','title':'documentiAge'},
                                { 'field': 'documenti','title':'documentiIsEmpty'}
                ]">
            </div>
        </script>
        <script id="rowTemplate" type="text/x-kendo-template">
            #for(var i = 0; i < data.length; i++){ #
                <tr>
                    <td>
                        <span>ciao</span>
                    </td>
                    <td>
                        <span>ciao</span>
                    </td>
                    <td>
                        <span>ciao</span>
                    </td>
                    <td>
                        <span>ciao</span>
                    </td>
                </tr>
            #}#
        </script>

3 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 27 Oct 2017, 12:38 PM

Hello,

Indeed you can do that. Please refer to the http://dojo.telerik.com/EVOXu/2 example for a reference.  

Regards,
Boyan Dimitrov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Lee
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 10 Oct 2019, 07:30 PM
This links to a blank dojo
0
Lee
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 10 Oct 2019, 07:31 PM
Disregard the previous. It just took a long time to load. 
Tags
Grid
Asked by
Federico
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Lee
Top achievements
Rank 1
Iron
Veteran
Iron
Share this question
or