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

Kendo window with angular ng-repeat problem

1 Answer 73 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 22 Jul 2015, 10:38 AM

Hi,

 I'm trying to implement dynamic windows using angular + kendo window by pointing ng-repeat to the collection of urls (here is the full sample: http://dojo.telerik.com/INeFO/2):

<div kendo-window="win" k-title="'AJAX content'" ng-repeat="form in forms track by $index"
            k-width="600" k-height="200" k-visible="true"
            k-content="{ url: form }"
            ></div>

Everything works ok during initialization. But when new item is added to the forms collection in runtime, new window is being opened ok, but the existing windows become corrupted - they lose their content, please see the dojo link.

So the question is - is it possible to get it working somehow and is it a bug or I'm doing something wrong?

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 24 Jul 2015, 08:40 AM
Hi Dmitry,

Initializing Kendo Window widgets with ng-repeat is not supported. It isn't possible to fix this - the widgets build their own DOM on initialization and that doesn't necessarily match the original HTML which ng-repeat will generate.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Window
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or