AngualrJS data and Popup kendo window

2 posts, 0 answers
  1. Bertha
    Bertha avatar
    56 posts
    Member since:
    Aug 2012

    Posted 04 Sep 2014 Link to this post

    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
    }
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 05 Sep 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top