@syncfusion/ej2-treegrid 19.4.47 → 19.4.48
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 +11 -0
- 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 +16 -4
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +16 -4
- 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/helpers/e2e/treegridhelper.js +0 -3
- package/package.json +9 -9
- package/src/treegrid/actions/virtual-scroll.js +1 -1
- package/src/treegrid/base/treegrid.js +15 -3
|
@@ -3054,7 +3054,9 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3054
3054
|
* @returns {void}
|
|
3055
3055
|
*/
|
|
3056
3056
|
sortByColumn(columnName, direction, isMultiSort) {
|
|
3057
|
-
this.sortModule
|
|
3057
|
+
if (this.sortModule) {
|
|
3058
|
+
this.sortModule.sortColumn(columnName, direction, isMultiSort);
|
|
3059
|
+
}
|
|
3058
3060
|
}
|
|
3059
3061
|
/**
|
|
3060
3062
|
* Clears all the sorted columns of the TreeGrid.
|
|
@@ -3074,7 +3076,9 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3074
3076
|
* @hidden
|
|
3075
3077
|
*/
|
|
3076
3078
|
removeSortColumn(field) {
|
|
3077
|
-
this.sortModule
|
|
3079
|
+
if (this.sortModule) {
|
|
3080
|
+
this.sortModule.removeSortColumn(field);
|
|
3081
|
+
}
|
|
3078
3082
|
}
|
|
3079
3083
|
/**
|
|
3080
3084
|
* Searches TreeGrid records using the given key.
|
|
@@ -3431,6 +3435,9 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3431
3435
|
this.grid.isReact = true;
|
|
3432
3436
|
this.grid.portals = [];
|
|
3433
3437
|
}
|
|
3438
|
+
if (this.isVue) {
|
|
3439
|
+
this.grid.isVue = true;
|
|
3440
|
+
}
|
|
3434
3441
|
createSpinner({ target: this.element }, this.createElement);
|
|
3435
3442
|
this.log(['mapping_fields_missing']);
|
|
3436
3443
|
this.renderModule = new Render(this);
|
|
@@ -5304,7 +5311,12 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5304
5311
|
});
|
|
5305
5312
|
}
|
|
5306
5313
|
else if (isNullOrUndefined(record)) {
|
|
5307
|
-
|
|
5314
|
+
if (this.detailTemplate) {
|
|
5315
|
+
record = this.grid.getCurrentViewRecords()[row.getAttribute('aria-rowindex')];
|
|
5316
|
+
}
|
|
5317
|
+
else {
|
|
5318
|
+
record = this.grid.getCurrentViewRecords()[row.rowIndex];
|
|
5319
|
+
}
|
|
5308
5320
|
}
|
|
5309
5321
|
return record;
|
|
5310
5322
|
}
|
|
@@ -11741,7 +11753,7 @@ class VirtualScroll$1 {
|
|
|
11741
11753
|
if (pageingDetails.count < this.parent.getRows()[0].getBoundingClientRect().height) {
|
|
11742
11754
|
startIndex = 0;
|
|
11743
11755
|
}
|
|
11744
|
-
else {
|
|
11756
|
+
else if (!this.parent['isExpandAll']) {
|
|
11745
11757
|
startIndex = this.prevstartIndex === -1 ? 0 : this.prevstartIndex;
|
|
11746
11758
|
}
|
|
11747
11759
|
}
|