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

Render data source with templates

1 Answer 67 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Hector
Top achievements
Rank 1
Hector asked on 01 Aug 2013, 08:10 PM
I am using this method to render the data.
$("#foo").html(kendo.render(template, view))

Are  they any other code I can use to render the data ?

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 05 Aug 2013, 03:32 PM
Hi Hector,

 The other way to render a template is to invoke it as a javascript function passing a data item as the argument:

var html = template(view[0]);


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