render

Renders the specified template using the provided array.

Example

<ul></ul>
<script>
var template = kendo.template("<li>#: name #</li>");
var data = [ { name: "John Doe" }, { name: "Jane Doe" }];
var html = kendo.render(template, data);
$("ul").html(html);
</script>

Parameters

template Function

The Kendo UI template which should be rendered. Create one via the template method.

data Array

The array of objects which contains the data that the template will render.

In this article
Not finding the help you need?