Add views to body at runtime

2 posts, 0 answers
  1. Sergio
    Sergio avatar
    1 posts
    Member since:
    Oct 2012

    Posted 24 Oct 2012 Link to this post

    Hi, I need to add views at runtime in the body and then do a navigate.

    I append a new view to body at runtime:
    <div data-role="view" data-layout="layout" data-title="view2" id="view2">

    Is it possible to programmatically add new views and is recognized by kendo.mobile.Application?

    Thanks!
  2. Ralf
    Ralf avatar
    5 posts
    Member since:
    Oct 2012

    Posted 02 Nov 2012 Link to this post

    Hi!

    I had the same problem.

    Look at http://docs.kendoui.com/getting-started/data-attribute-initialization, you have to insert something like 
    <script>
        kendo.init($("#view2"));
    </script> 
  3. Kendo UI is VS 2017 Ready
Back to Top