小编asu*_*man的帖子

jQuery 无法在调用 ignite ui 过滤网格方法的初始化错误之前调用方法

我正在尝试从他们的小提琴示例中引用 infragistics ignite ui grid 上的过滤器方法。似乎在他们的小提琴上表现正常,但在我的 angularjs 应用程序上表现不佳。你可以在这里找到小提琴 - http://jsfiddle.net/40xgtcry/

在我的 angular js 应用程序中,我正在使用一些虚拟数据在 angular 指令中初始化网格,然后我通过调用 igGridFiltering 方法进行跟踪。

define(['directives/directives', 'northwind'],
    function(directives) {
        directives.directive('gridView', function () {
            return {
                restrict: 'EA',
                scope: true,
                link: function (scope) {
                    scope.$on("InventoryDataReady", function  (){
                           // $( '#' + scope.gridSettings.targetId ).igGrid(scope.gridSettings);
                        $('#' + scope.gridSettings.targetId).igGrid({
                            autoGenerateColumns: false,
                            columns: [
                                { headerText: "Employee ID", key: "EmployeeID", dataType: "number" },
                                { headerText: "First Name", key: "FirstName", dataType: "string" },
                                { headerText: "Last Name", key: "LastName", dataType: "string" },
                                { …
Run Code Online (Sandbox Code Playgroud)

infragistics angularjs ignite-ui

3
推荐指数
1
解决办法
2083
查看次数

标签 统计

angularjs ×1

ignite-ui ×1

infragistics ×1