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

Control of the context for template.

0 Answers 51 Views
Templates
This is a migrated thread and some comments may be shown as answers.
Eugene
Top achievements
Rank 1
Eugene asked on 31 Jul 2012, 11:47 AM

Hi there,

Is there a way to specify context for a template? I do not use kendo viewmodels, but only its widgets. For binding view models I use KnockoutJS, and from time to time there is a need to execute a certain function to, say, do a formating. So far as I see you can only execute functions that are available on the dataitem binded or window object. How can I pass parent view model as a context for a template for a dataitem?

Thanks.

No answers yet. Maybe you can help?

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