@syncfusion/ej2-treegrid 31.1.21 → 31.1.22

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.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 31.1.21
4
- * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
3
+ * version : 31.1.22
4
+ * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
7
7
  * licensing@syncfusion.com. Any infringement will be prosecuted under
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-treegrid",
3
- "version": "31.1.21",
3
+ "version": "31.1.22",
4
4
  "description": "Essential JS 2 TreeGrid Component",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,9 +8,9 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-treegrid.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~31.1.20",
11
+ "@syncfusion/ej2-base": "~31.1.22",
12
12
  "@syncfusion/ej2-data": "~31.1.17",
13
- "@syncfusion/ej2-grids": "~31.1.21",
13
+ "@syncfusion/ej2-grids": "~31.1.22",
14
14
  "@syncfusion/ej2-popups": "~31.1.20"
15
15
  },
16
16
  "devDependencies": {},
@@ -565,9 +565,11 @@ var DataManipulation = /** @class */ (function () {
565
565
  _loop_2(r);
566
566
  }
567
567
  var localIdMapping = _this.parent.idMapping;
568
- datas.sort(function (firstRecord, secondRecord) {
569
- return firstRecord["" + localIdMapping] - secondRecord["" + localIdMapping];
570
- });
568
+ if (_this.parent.enableVirtualization && _this.parent.loadChildOnDemand) {
569
+ datas.sort(function (firstRecord, secondRecord) {
570
+ return firstRecord["" + localIdMapping] - secondRecord["" + localIdMapping];
571
+ });
572
+ }
571
573
  setValue('result', datas, e);
572
574
  setValue('action', 'beforecontentrender', e);
573
575
  _this.parent.trigger(events.actionComplete, e);