@syncfusion/ej2-treegrid 34.2.4 → 34.2.5

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.
@@ -2337,7 +2337,7 @@ var Render = /** @__PURE__ @class */ (function () {
2337
2337
  else {
2338
2338
  expand = !(!data.expanded || !getExpandStatus(this.parent, data, this.parent.grid.getCurrentViewRecords()));
2339
2339
  // TicketsID 43483: While Modify Data Expand and Collapse Icon Behavior Changed
2340
- if (this.parent.editSettings.mode === 'Cell' && !isRemoteData(this.parent)) {
2340
+ if (this.parent.editSettings.mode === 'Cell' && !isRemoteData(this.parent) && this.parent.allowPaging) {
2341
2341
  var selectedRow = this.parent.flatData.find(function (item) { return item.uniqueID === data.uniqueID; });
2342
2342
  if (!isNullOrUndefined(selectedRow)) {
2343
2343
  expand = data.expanded !== selectedRow.expanded ? selectedRow.expanded : data.expanded;
@@ -3163,6 +3163,9 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
3163
3163
  getValue('grid.renderModule', _this.parent).dataManagerSuccess(e, virtualArgs);
3164
3164
  }
3165
3165
  _this.parent.trigger(expanded, args);
3166
+ })
3167
+ .catch(function (e) {
3168
+ _this.parent.trigger(actionFailure, e);
3166
3169
  });
3167
3170
  };
3168
3171
  DataManipulation.prototype.remoteVirtualAction = function (virtualArgs) {
@@ -11889,6 +11892,7 @@ var Filter = /** @__PURE__ @class */ (function () {
11889
11892
  };
11890
11893
  Filter.prototype.checkChildExsist = function (records) {
11891
11894
  var childRec = getObject('childRecords', records);
11895
+ var isNegativeOperator = this.checkNegativePredicate();
11892
11896
  var isExist = false;
11893
11897
  for (var count = 0; count < childRec.length; count++) {
11894
11898
  var ischild = childRec[parseInt(count.toString(), 10)].childRecords;
@@ -11896,11 +11900,14 @@ var Filter = /** @__PURE__ @class */ (function () {
11896
11900
  this.parent.filterSettings.hierarchyMode : this.parent.searchSettings.hierarchyMode;
11897
11901
  if (((hierarchyMode === 'Child' || hierarchyMode === 'Both') && (this.parent.grid.filterSettings.columns.length !== 0
11898
11902
  || this.parent.grid.searchSettings.key !== ''))) {
11899
- var uniqueIDValue = getValue('uniqueIDFilterCollection', this.parent);
11900
- if (!Object.prototype.hasOwnProperty.call(uniqueIDValue, childRec[parseInt(count.toString(), 10)].uniqueID)) {
11901
- this.filteredResult.push(childRec[parseInt(count.toString(), 10)]);
11902
- setValue('uniqueIDFilterCollection.' + childRec[parseInt(count.toString(), 10)].uniqueID, childRec[parseInt(count.toString(), 10)], this.parent);
11903
- isExist = true;
11903
+ var recordID = childRec[parseInt(count.toString(), 10)].uniqueID;
11904
+ if (!isNegativeOperator) {
11905
+ var uniqueIDValue = getValue('uniqueIDFilterCollection', this.parent);
11906
+ if (!Object.prototype.hasOwnProperty.call(uniqueIDValue, childRec[parseInt(count.toString(), 10)].uniqueID)) {
11907
+ this.filteredResult.push(childRec[parseInt(count.toString(), 10)]);
11908
+ setValue('uniqueIDFilterCollection.' + childRec[parseInt(count.toString(), 10)].uniqueID, childRec[parseInt(count.toString(), 10)], this.parent);
11909
+ isExist = true;
11910
+ }
11904
11911
  }
11905
11912
  }
11906
11913
  if ((hierarchyMode === 'None')
@@ -11951,6 +11958,17 @@ var Filter = /** @__PURE__ @class */ (function () {
11951
11958
  this.filteredResult = [];
11952
11959
  this.parent.notify('updateResults', { result: flatData, count: flatData.length });
11953
11960
  };
11961
+ Filter.prototype.checkNegativePredicate = function () {
11962
+ var filterColumns = this.parent.grid.filterSettings.columns;
11963
+ for (var i = 0; i < filterColumns.length; i++) {
11964
+ var operator = getValue('operator', filterColumns[parseInt(i.toString(), 10)]);
11965
+ if (operator === 'doesnotcontain' || operator === 'notequal' || operator === 'doesnotstartwith'
11966
+ || operator === 'doesnotendwith' || operator === 'notin') {
11967
+ return true;
11968
+ }
11969
+ }
11970
+ return false;
11971
+ };
11954
11972
  return Filter;
11955
11973
  }());
11956
11974