Trouble w/ Layout binding

3 posts, 1 answers
  1. Answer
    Reagan
    Reagan  avatar
    7 posts
    Member since:
    Oct 2013

    Posted 09 Jan 2014 Link to this post

    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. 
  2. Reagan
    Reagan  avatar
    7 posts
    Member since:
    Oct 2013

    Posted 13 Jan 2014 Link to this post

    Hi Reagan,

    The SPA View/Layout rely on MVV bindings to display data - template expressions are not supported. Please check an updated version of your example

    Regards,
    Petyo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Reagan
    Reagan  avatar
    7 posts
    Member since:
    Oct 2013

    Posted 13 Jan 2014 Link to this post

    Thank you so much for your help! I knew I had to be missing something huge, and that was it. Thanks again!!
Back to Top