Edit this page

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.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy