New to Kendo UI for jQuery? Download free 30-day trial

Cannot Preserve the Popup Template When Using the Grid setOptions Method in AngularJS

Environment

Product Progress® Kendo UI® Grid for jQuery
Operating System Windows 10 64bit
Browser Google Chrome
Browser Version 56.0.2924.87 (64-bit)

Description

How can I preserve the popup template of the Grid when I use setOptions to change its options?

Solution

Pass the AngularJS scope to the Grid options. By default, the Grid when initialized expects such logic.

$scope.grid.setOptions($.extend({}, options, {
                        $angular: [$scope]
                    }));
In this article