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

bind() vs kendoWidget() and nested templates

0 Answers 123 Views
Templates
This is a migrated thread and some comments may be shown as answers.
Shane
Top achievements
Rank 1
Shane asked on 07 Jun 2012, 08:55 PM
I would like to understand the difference between calling kendo.bind() and $('#foo').kendo<Widget>().  I have a jsfiddle at  http://jsfiddle.net/sholder/yAujr/ which demonstrates what is confusing me.  The call below to $('#listview')... does not produce the result I expect in that the nested template is not rendered.  But if I call the kendo.bind() as below then I receive the expected result.

$('#listview').kendoListView(
    dataSource:{data:viewModel.categories},
    templatekendo.template($('#category-template').html())
});

kendo.bind($('#list')viewModel) 

So, what is kendo.bind doing that the call to kendoListView() does not?

Thanks,
Shane Holder

No answers yet. Maybe you can help?

Tags
Templates
Asked by
Shane
Top achievements
Rank 1
Share this question
or