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)

Starting with R2 2022, the Kendo UI team officially drops the support for AngularJS 1.x through Kendo UI for jQuery. The AngularJS related files and functionality are removed from the bundles and distribution in R3 SP1 2023. The last version that contains the files is R3 2023.

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