xiaolizi007
11/22/2016 - 6:08 AM

From http://wiki.jikexueyuan.com/project/kendo-ui-development-tutorial/initialize-data-attributes.html


<div id="container">
    <input data-role="autocomplete"
           data-source="[{firstName:'John', lastName: 'Doe'}, {firstName:'Jane', lastName: 'Doe'}]"
           data-text-field="firstName"
           data-template="template" />
</div>
<script id="template" type="text/x-kendo-template">
    <span>#: firstName # #: lastName #</span>
</script>
<script>
kendo.init($("#container"));
</script>