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

Add views to body at runtime

1 Answer 38 Views
Application
This is a migrated thread and some comments may be shown as answers.
Sergio
Top achievements
Rank 1
Sergio asked on 24 Oct 2012, 08:42 AM
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!

1 Answer, 1 is accepted

Sort by
0
Dner
Top achievements
Rank 1
answered on 02 Nov 2012, 07:09 AM
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> 
Tags
Application
Asked by
Sergio
Top achievements
Rank 1
Answers by
Dner
Top achievements
Rank 1
Share this question
or