@syncfusion/ej2-treegrid 30.1.37 → 30.2.4
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/aceconfig.js +17 -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 -3
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +10 -3
- 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 +5 -5
- package/src/treegrid/actions/excel-export.js +1 -1
- package/src/treegrid/actions/selection.js +7 -0
- package/src/treegrid/base/treegrid.js +1 -1
- package/src/treegrid/renderer/virtual-tree-content-render.js +1 -1
|
@@ -1353,6 +1353,13 @@ class Selection {
|
|
|
1353
1353
|
this.headerSelection();
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
|
+
else {
|
|
1357
|
+
if ((requestType === 'filtering' || requestType === 'searching' || requestType === 'refresh')
|
|
1358
|
+
&& !isRemoteData(this.parent)) {
|
|
1359
|
+
this.selectedItems = [];
|
|
1360
|
+
this.selectedIndexes = [];
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1356
1363
|
}
|
|
1357
1364
|
}
|
|
1358
1365
|
getCheckedrecords() {
|
|
@@ -5593,7 +5600,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5593
5600
|
const checkedTarget = this.grid.getHeaderContent().querySelector('.e-checkselectall');
|
|
5594
5601
|
const checkedLen = this.grid.getSelectedRowIndexes().length;
|
|
5595
5602
|
const totalRecords = this.getCurrentViewRecords().length;
|
|
5596
|
-
if (checkedLen === totalRecords) {
|
|
5603
|
+
if (totalRecords > 0 && checkedLen === totalRecords) {
|
|
5597
5604
|
const spanEle = checkedTarget.nextElementSibling;
|
|
5598
5605
|
removeClass([spanEle], ['e-stop', 'e-uncheck']);
|
|
5599
5606
|
addClass([spanEle], ['e-check']);
|
|
@@ -10665,7 +10672,7 @@ class ExcelExport {
|
|
|
10665
10672
|
this.isCollapsedStatePersist = excelExportProperties.isCollapsedStatePersist;
|
|
10666
10673
|
}
|
|
10667
10674
|
if (!isNullOrUndefined(excelExportProperties)) {
|
|
10668
|
-
if (!isNullOrUndefined(excelExportProperties.dataSource) && !excelExportProperties.dataSource['dataSource']) {
|
|
10675
|
+
if (!this.isLocal() && !isNullOrUndefined(excelExportProperties.dataSource) && !excelExportProperties.dataSource['dataSource']) {
|
|
10669
10676
|
return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
|
|
10670
10677
|
}
|
|
10671
10678
|
if (excelExportProperties.exportType === 'CurrentPage') {
|
|
@@ -14478,7 +14485,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
14478
14485
|
&& !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== ''))) {
|
|
14479
14486
|
const viewInfo = this.currentInfo = getValue('getInfoFromView', this).apply(this, [scrollArgs.direction, info, scrollArgs.offset]);
|
|
14480
14487
|
this.previousInfo = viewInfo;
|
|
14481
|
-
if (this.prevInfo && ((info.axis === 'Y' && this.prevInfo.blockIndexes.toString() === viewInfo.blockIndexes.toString())
|
|
14488
|
+
if (this.prevInfo && (isRemoteData(this.parent.root) && viewInfo.event !== 'model-changed') && ((info.axis === 'Y' && this.prevInfo.blockIndexes.toString() === viewInfo.blockIndexes.toString())
|
|
14482
14489
|
|| ((info.axis === 'X' && this.prevInfo.columnIndexes.toString() === viewInfo.columnIndexes.toString())
|
|
14483
14490
|
|| (this.parent.isFrozenGrid() && this.parent.getVisibleFrozenLeftCount() >= viewInfo.columnIndexes[0]
|
|
14484
14491
|
&& this.prevInfo.columnIndexes.toString().includes(viewInfo.columnIndexes.toString()))))) {
|