I'm trying to output a template for a panel bar which I want to bind to a simple "Task" object.
The idea is that I have a kendoPanelbar and a template for adding new campaigns as panels based on a selected task.
In short, my task object has a "CampaignId" property and as shown I want to output that value when building the template.
For some reason though kendo is giving me an error which suggests that it can't find this property.
#: CampaignId #</span>
init code in question:
task = $(
panelTemplate = kendo.template($(
boundResult = panelTemplate(task);
.... (init tree ect omitted for simplicity) ...
Chrome tools output:
.... (rest of object output removed) ...
Uncaught ReferenceError: CampaignId is not defined VM23536:3