render

Renders the view contents. Accepts a jQuery selector (or jQuery object) to which the contents will be appended. Alternatively, the render method can be called without parameters in order to retrieve the View element for manual insertion/further manipulation.

Example

<div id="app"></div>

<script>
var index = new kendo.View('<span>Hello World!</span>');
index.render("#app");
</script>

Example

<div id="app"></div>

<script>
var index = new kendo.View('<span>Hello World!</span>');
$("#app").append(index.render());
</script>

Parameters

container jQuery

(optional) the element in which the view element will be appended.

Returns

jQuery the view element.

In this article
Not finding the help you need? Improve this article