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

AngualrJS data and Popup kendo window

1 Answer 181 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bertha
Top achievements
Rank 1
Bertha asked on 04 Sep 2014, 03:25 PM
I can get AngularJS data show correctly in kendo popup window.  But when I change the controller and scope data, it still show the old data. I use alert and found the scope data is correct before showing the popup window.  I want to share the same popup kendo window across different controller as their interface are the same.  What did I miss?

​ function popupMonths() {
       $scope.$apply();
      alert($scope.selectedItemName);             <<< correct data show in here
      $("#winAddMths").kendoWindow({
            width: "430px",
            height: "200px",
            modal: true,
            draggable: true,
            resizable: false,
            title: "Apply to Selected Months"
     });
     $("#winAddMths").data("kendoWindow").center().open();    <<< open but with previous data
}

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 05 Sep 2014, 07:30 AM
Hello Bertha,

Do not mix the imperative jQuery style of writing apps with AngularJS (this is a common pitfall when working with AngularJS) -- creating widgets using the jQuery plug-ins is not supported in AngularJS applications. Instead, use the documented way of instantiating widgets in AngularJS.

Regards,
Alex Gyoshev
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
Bertha
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or