鼠标滚动在Kendo Grid的IE浏览器中无法使用虚拟化。

时间:2015-10-12 14:38:11

标签: jquery user-interface kendo-ui kendo-grid kendo-ui-grid

我对网格有一个通用控件,滚动在所有浏览器中工作正常,但Scroll in不使用IE 10/11(使用鼠标滚轮滚动)和Kendo UI网格中的可视化。

代码段如下: -

dataList.kendoGrid({                 名称:" BaseGrid",                 dataBound:self.handleDataBoundEventHandler,                 dataBinding:self.options.dataBindingEventHandler,                 可编辑的:self.options.editable,                 beforeEdit:self.options.beforeEdit,                 编辑:self.options.edit,                 editCell:self.options.editCell,                 批次:this.batch,                 navigatable:self.options.navigatable ||真正,                 init:self.options.initialize,                 数据源: {                     输入:" json",                     group:self.options.group,                     运输:transportOptions,                     serverPaging:serverPaging,                     serverSorting:serverSorting,                     serverFiltering:serverFiltering,                     pageSize:self.pageSize,                     架构:{                         model:self.options.model,                         data:function(response){                             if(self.options.jsonData){                                 response.dataList = self.options.jsonData;                             }                             response = self.handleOnSuccess(response);

                        self.NoRecordOnsuccess(response);

                        if (self.options.isDynamicColumnsAvailable) {
                            self.trigger("configureColumnDataFetched", response.dataList);
                        }
                        if (self.options.collection) {
                            self.options.collection.set(response.dataList);
                        }
                        return response.dataList;
                    },
                    total: function (response) {
                        return response.totalRecords;
                    }
                },
                change: function (e) {
                    // Changing sort icon on sort change
                    self.changeSortIcon(this);
                    self.modifySenderData(e.sender);
                    if (self.options.changeEventHandler) {
                        self.options.changeEventHandler(e);
                    }
                },
                requestStart: function (e) {
                    if (self.options.requestStart) {
                        self.options.requestStart(e);
                    }
                },
                sort: self.options.userPreferenceSort || self.options.defaultSort
            },
            sortable: self.options.sortable,
            selectable: self.options.selectable,
            filterable: self.options.filterable,
            scrollable: {
                virtual: _.isUndefined(self.options.virtualScrollable) ? true : self.options.virtualScrollable
            },
            reorderable: self.options.reorderable,
            resizable: self.options.resizable,
            columnReorder: function (e) {
                // Update the User preference model with new sequence no
                setTimeout(function () {
                    self.updateColumnSequenceNumber(self.getDataList().columns);
                }, 5);
            },
            columnResize: function (e) {
                // Update the User preference model with new width of column
                self.updateUserPreference(e.column.preferenceColumnName, "resize", e.newWidth);
            },
            enableSwipe: true,
            columns: this.getGridColumns()
        });
    },

如果有任何人有任何解决方案,请告诉我。

0 个答案:

没有答案