Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Open kendo window dynamically from angular

$
0
0

I am trying to open a kendo window dynamically from angular. By dynamically, I mean adding a new <div> for a window to the html from an angular function and then open the window. I do not want to include this <div> directly inside the html because I want to create a varying number of windows. The function in the controller looks like this

$scope.showCalendar = function() {
   var element = "<div kendo-window='calendar' k-visible='false'> <div kendo-calendar></div> </div>";
   $("#calendarDiv").append(element);
   $scope.calendar.open();
};

The window does not appear. If I include this div directly inside the html file, the function call $scope.calendar.open() works okay, of course. 


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>