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

How to add/init/render a new view in Kendo UI Mobile?

1 Answer 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dner
Top achievements
Rank 1
Dner asked on 30 Oct 2012, 10:06 PM
Hi!

I need to insert some new views at runtime. Just doing it like this is not working.

dummy='<div data-role="view" data-layout="overview-layout-back" id="standortauskunft-01" data-title="Standort'><ul data-role="listview" data-style="inset" data-type="group"><li>test bla bla</li></ul></div>';
$('#standorte').after(dummy);

I think, i need to render(?) the newly inserted view, but don't know how.

Hope, someone can help me.

Ralf

1 Answer, 1 is accepted

Sort by
0
Dner
Top achievements
Rank 1
answered on 02 Nov 2012, 07:11 AM
Solved! I found the solution at http://docs.kendoui.com/getting-started/data-attribute-initialization

Ralf
Tags
General Discussions
Asked by
Dner
Top achievements
Rank 1
Answers by
Dner
Top achievements
Rank 1
Share this question
or