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

Declarative grid column external template

1 Answer 158 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Software
Top achievements
Rank 1
Software asked on 16 Apr 2013, 03:02 PM
How do I put an external  template into a grid column declaratively?

Here is what I am trying:
<script id="template" type='text/x-kendo-template'>
    #=Amount#
</script>
 
<div id="calledAndDefeasedDebt"
     data-role="grid"
     data-scrollable="false"
     data-bind="source: calledAndDefeasedDebt"
     data-columns="['Description', {'field':'Amount', 'title':'AMT', 'template':'kendo.template($(\'template\').html())'}]">
</div>

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 17 Apr 2013, 06:30 AM
Hello Eric,

Here is one way to achieve this: http://jsbin.com/irenum/2/edit
 

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Software
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or