@syncfusion/ej2-treegrid 26.1.39 → 26.1.40
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/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 +12 -1
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +12 -1
- 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/virtual-scroll.d.ts +1 -0
- package/src/treegrid/actions/virtual-scroll.js +6 -0
- package/src/treegrid/base/treegrid.js +6 -1
|
@@ -5143,7 +5143,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5143
5143
|
onPropertyChanged(newProp) {
|
|
5144
5144
|
const properties = Object.keys(newProp);
|
|
5145
5145
|
let requireRefresh = false;
|
|
5146
|
-
if (properties.indexOf('columns') > -1) {
|
|
5146
|
+
if (properties.indexOf('columns') > -1 && !isNullOrUndefined(newProp.columns)) {
|
|
5147
5147
|
this.grid.columns = this.getGridColumns(newProp.columns);
|
|
5148
5148
|
this.grid['updateColumnObject']();
|
|
5149
5149
|
requireRefresh = true;
|
|
@@ -6261,6 +6261,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6261
6261
|
* @returns {void}
|
|
6262
6262
|
*/
|
|
6263
6263
|
expandRow(row, record, key, level) {
|
|
6264
|
+
this.isCollapseAll = false;
|
|
6264
6265
|
if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key) && isNullOrUndefined(level)) {
|
|
6265
6266
|
const error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
|
|
6266
6267
|
this.trigger(actionFailure, { error: error });
|
|
@@ -6381,6 +6382,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6381
6382
|
* @returns {void}
|
|
6382
6383
|
*/
|
|
6383
6384
|
collapseRow(row, record, key) {
|
|
6385
|
+
this.isExpandAll = false;
|
|
6384
6386
|
if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key)) {
|
|
6385
6387
|
const error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
|
|
6386
6388
|
this.trigger(actionFailure, { error: error });
|
|
@@ -6649,6 +6651,9 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6649
6651
|
return e.querySelector('.e-treegrid' + (action === 'expand' ? 'collapse' : 'expand'));
|
|
6650
6652
|
});
|
|
6651
6653
|
}
|
|
6654
|
+
if (!rows.length && this.getRows().length) {
|
|
6655
|
+
rows.push(this.getRows()[0]);
|
|
6656
|
+
}
|
|
6652
6657
|
this.isExpandAll = true;
|
|
6653
6658
|
this.isCollapseAll = true;
|
|
6654
6659
|
if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization || this.enableInfiniteScrolling) && !isRemoteData(this)) {
|
|
@@ -13641,6 +13646,11 @@ class VirtualScroll {
|
|
|
13641
13646
|
}
|
|
13642
13647
|
}
|
|
13643
13648
|
//}
|
|
13649
|
+
if (this.prevrequestType === 'collapseAll' && pageingDetails.actionArgs.requestType === 'virtualscroll') {
|
|
13650
|
+
startIndex = 0;
|
|
13651
|
+
endIndex = this.parent.grid.pageSettings.pageSize - 1;
|
|
13652
|
+
this.parent.grid.notify(virtualActionArgs, { setTop: true });
|
|
13653
|
+
}
|
|
13644
13654
|
if ((this.parent.enableCollapseAll || this.parent.expandStateMapping) && !isNullOrUndefined(this.expandCollapseRec)) {
|
|
13645
13655
|
if (pageingDetails.count < this.parent.getRows()[0].getBoundingClientRect().height) {
|
|
13646
13656
|
startIndex = 0;
|
|
@@ -13659,6 +13669,7 @@ class VirtualScroll {
|
|
|
13659
13669
|
}
|
|
13660
13670
|
this.prevstartIndex = startIndex;
|
|
13661
13671
|
this.prevendIndex = endIndex;
|
|
13672
|
+
this.prevrequestType = pageingDetails.actionArgs.requestType;
|
|
13662
13673
|
}
|
|
13663
13674
|
this.parent.notify('updateAction', pageingDetails);
|
|
13664
13675
|
}
|