@syncfusion/ej2-treegrid 25.1.39 → 25.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/ej2-treegrid.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +10 -7
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +10 -7
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +2 -2
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/treegrid/actions/excel-export.js +1 -1
- package/src/treegrid/actions/virtual-scroll.js +5 -5
- package/src/treegrid/renderer/virtual-tree-content-render.js +4 -1
|
@@ -10098,7 +10098,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10098
10098
|
if (!this.isLocal()) {
|
|
10099
10099
|
this.parent.flatData = [];
|
|
10100
10100
|
}
|
|
10101
|
-
if (property && property.dataSource
|
|
10101
|
+
if (property && property.dataSource) {
|
|
10102
10102
|
var flatsData = this.parent.flatData;
|
|
10103
10103
|
var dataSrc = property.dataSource instanceof DataManager ? property.dataSource.dataSource.json : property.dataSource;
|
|
10104
10104
|
this.parent.dataModule.convertToFlatData(dataSrc);
|
|
@@ -13232,7 +13232,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
13232
13232
|
VirtualTreeContentRenderer.prototype.dataBoundEvent = function () {
|
|
13233
13233
|
var dataBoundEve = 'dataBound';
|
|
13234
13234
|
var initialRowTop = 'initialRowTop';
|
|
13235
|
-
if (
|
|
13235
|
+
if (this.parent.getRows().length && !isNullOrUndefined(this.parent.getRowByIndex(0)) && !this["" + initialRowTop]) {
|
|
13236
13236
|
var rowTop = this.parent.getRowByIndex(0).getBoundingClientRect().top;
|
|
13237
13237
|
var gridTop = this.parent.element.getBoundingClientRect().top;
|
|
13238
13238
|
if (rowTop > 0) {
|
|
@@ -13511,6 +13511,9 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
13511
13511
|
this.previousInfo = viewInfo;
|
|
13512
13512
|
this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
|
|
13513
13513
|
var page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
|
|
13514
|
+
if (downScroll && this.endIndex === this.totalRecords && viewInfo.loadNext) {
|
|
13515
|
+
viewInfo.loadNext = false;
|
|
13516
|
+
}
|
|
13514
13517
|
this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
|
|
13515
13518
|
this.requestType = 'virtualscroll';
|
|
13516
13519
|
if (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left') {
|
|
@@ -13831,14 +13834,14 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13831
13834
|
}
|
|
13832
13835
|
if ((requestType === 'save' && pageingDetails.actionArgs.index >= (counts.count - this.parent.grid.pageSettings.pageSize)) || (requestType === 'refresh' && this.parent['isGantt'] && this.parent['isAddedFromGantt'])) {
|
|
13833
13836
|
var modifiedStartIndex = counts.startIndex + (counts.count - counts.endIndex);
|
|
13834
|
-
if (counts.
|
|
13835
|
-
startIndex = counts.startIndex;
|
|
13836
|
-
endIndex = counts.endIndex;
|
|
13837
|
-
}
|
|
13838
|
-
else {
|
|
13837
|
+
if (counts.count - counts.startIndex <= this.parent.grid.pageSettings.pageSize) {
|
|
13839
13838
|
startIndex = modifiedStartIndex;
|
|
13840
13839
|
endIndex = counts.count;
|
|
13841
13840
|
}
|
|
13841
|
+
else {
|
|
13842
|
+
startIndex = counts.startIndex;
|
|
13843
|
+
endIndex = counts.endIndex;
|
|
13844
|
+
}
|
|
13842
13845
|
this.parent['isAddedFromGantt'] = false;
|
|
13843
13846
|
}
|
|
13844
13847
|
//if ((this.prevendIndex !== -1 && this.prevstartIndex !== -1) &&
|