I'm very new to MVVM and also to Kendo. I was trying to use the SPA examples to build something I already had working another way. The SPA "Getting Started" examples use the concept of Layouts and Views together which looks useful. Here's what I'm trying to do:
Iterate over a simple JSON array in my viewmodel to emit a bound list of checkboxes. I originally got it working using the kendo.template() method and then setting the HTML results of that to the .html() of my target div. That works fine. But if I try and do this using a Layout and a View, (using layout.showIn() method) it just spits out my template tags and doesn't actually do anything. Here's a JSFiddle showing this:
http://jsfiddle.net/6Nsx8/1/
Any input is appreciated.
Thanks,
Reagan
PS: I have the sushi source code up for reference and I'm pretty sure I'm doing things right, but I can't be sure.
Iterate over a simple JSON array in my viewmodel to emit a bound list of checkboxes. I originally got it working using the kendo.template() method and then setting the HTML results of that to the .html() of my target div. That works fine. But if I try and do this using a Layout and a View, (using layout.showIn() method) it just spits out my template tags and doesn't actually do anything. Here's a JSFiddle showing this:
http://jsfiddle.net/6Nsx8/1/
Any input is appreciated.
Thanks,
Reagan
PS: I have the sushi source code up for reference and I'm pretty sure I'm doing things right, but I can't be sure.