@syncfusion/ej2-treegrid 25.1.42 → 25.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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 25.1.42
3
+ * version : 25.2.4
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. 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
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-treegrid@*",
3
- "_id": "@syncfusion/ej2-treegrid@25.1.41",
3
+ "_id": "@syncfusion/ej2-treegrid@25.2.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-oDcAbey3zDcULE67WmjiYHVTjbV7eTXnVvrsPXmQEdM0a/+/kfcPCQzw/p53ryKRHRypi04/DtaiywrRq5x3nQ==",
5
+ "_integrity": "sha512-HOkPjvJIYwpxfaWkUIOYpnGC5XJO7/cJB/tZwq6Jg9EMWQ7l7aqvuTQrYhxbzxSiHddeWg0QQMr5kn01Hjn4DQ==",
6
6
  "_location": "/@syncfusion/ej2-treegrid",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -24,8 +24,8 @@
24
24
  "/@syncfusion/ej2-react-treegrid",
25
25
  "/@syncfusion/ej2-vue-treegrid"
26
26
  ],
27
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-25.1.41.tgz",
28
- "_shasum": "00dd3e401fc8059a49d07aca8a2121a3aa172419",
27
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-25.2.3.tgz",
28
+ "_shasum": "533c93d33f5d4bfab536136267ea32479a363b5b",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
31
31
  "author": {
@@ -36,10 +36,10 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~25.1.35",
40
- "@syncfusion/ej2-data": "~25.1.35",
41
- "@syncfusion/ej2-grids": "~25.1.42",
42
- "@syncfusion/ej2-popups": "~25.1.42"
39
+ "@syncfusion/ej2-base": "~25.2.3",
40
+ "@syncfusion/ej2-data": "~25.2.3",
41
+ "@syncfusion/ej2-grids": "~25.2.3",
42
+ "@syncfusion/ej2-popups": "~25.2.4"
43
43
  },
44
44
  "deprecated": false,
45
45
  "description": "Essential JS 2 TreeGrid Component",
@@ -66,6 +66,6 @@
66
66
  "url": "git+https://github.com/syncfusion/ej2-treegrid.git"
67
67
  },
68
68
  "typings": "index.d.ts",
69
- "version": "25.1.42",
69
+ "version": "25.2.4",
70
70
  "sideEffects": false
71
71
  }
@@ -933,6 +933,7 @@ var Edit = /** @class */ (function () {
933
933
  args.index = position === 'before' ? index : index + 1;
934
934
  }
935
935
  if (this.parent.editSettings.newRowPosition === 'Bottom') {
936
+ level = 0;
936
937
  var dataSource = (this.parent.grid.dataSource instanceof DataManager ?
937
938
  this.parent.grid.dataSource.dataSource.json : this.parent.grid.dataSource);
938
939
  args.index = dataSource.length;
@@ -76,12 +76,17 @@ var ExcelExport = /** @class */ (function () {
76
76
  if (!isNullOrUndefined(excelExportProperties)) {
77
77
  this.isCollapsedStatePersist = excelExportProperties.isCollapsedStatePersist;
78
78
  }
79
+ if (!isNullOrUndefined(excelExportProperties) && !isNullOrUndefined(excelExportProperties.dataSource)
80
+ && !isNullOrUndefined(excelExportProperties.dataSource instanceof DataManager)) {
81
+ return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
82
+ }
79
83
  return new Promise(function (resolve) {
80
84
  var dm = _this.isLocal() && !(dataSource instanceof DataManager) ? new DataManager(dataSource)
81
85
  : _this.parent.dataSource;
82
86
  var query = new Query();
83
87
  if (!_this.isLocal()) {
84
88
  query = _this.generateQuery(query);
89
+ query.queries = _this.parent.grid.getDataModule().generateQuery().queries;
85
90
  setValue('query', query, property);
86
91
  }
87
92
  _this.parent.trigger(event.beforeExcelExport, extend(property, excelExportProperties));
@@ -126,15 +126,11 @@ var VirtualScroll = /** @class */ (function () {
126
126
  this.parent.grid.notify(events.virtualActionArgs, { setTop: true });
127
127
  }
128
128
  if ((requestType === 'save' && pageingDetails.actionArgs.index >= (counts.count - this.parent.grid.pageSettings.pageSize)) || (requestType === 'refresh' && this.parent['isGantt'] && this.parent['isAddedFromGantt'])) {
129
- var modifiedStartIndex = counts.startIndex + (counts.count - counts.endIndex);
130
- if (counts.count - counts.startIndex <= this.parent.grid.pageSettings.pageSize) {
131
- startIndex = modifiedStartIndex;
129
+ if ((counts.endIndex + this.parent.pageSettings.pageSize >= counts.count && (this.parent.root && counts.count - counts.endIndex === this.visualData.length - this.parent.root['previousFlatData'].length))
130
+ || !(this.parent['isGantt'] && this.parent['isAddedFromGantt'])) {
131
+ startIndex = counts.startIndex + (counts.count - counts.endIndex);
132
132
  endIndex = counts.count;
133
133
  }
134
- else {
135
- startIndex = counts.startIndex;
136
- endIndex = counts.endIndex;
137
- }
138
134
  this.parent['isAddedFromGantt'] = false;
139
135
  }
140
136
  //if ((this.prevendIndex !== -1 && this.prevstartIndex !== -1) &&
@@ -1,4 +1,4 @@
1
- import { Component, addClass, createElement, EventHandler, isNullOrUndefined, Fetch, ModuleDeclaration, extend, merge, SanitizeHtmlHelper} from '@syncfusion/ej2-base';import { removeClass, EmitType, Complex, Collection, KeyboardEventArgs, getValue, NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base';import {Event, Property, NotifyPropertyChanges, INotifyPropertyChanged, setValue, KeyboardEvents, L10n } from '@syncfusion/ej2-base';import { Column, ColumnModel } from '../models/column';import { BeforeBatchSaveArgs, BeforeBatchAddArgs, BatchDeleteArgs, BeforeBatchDeleteArgs, Row, getNumberFormat } from '@syncfusion/ej2-grids';import { GridModel, ColumnQueryModeType, HeaderCellInfoEventArgs, EditSettingsModel as GridEditModel } from '@syncfusion/ej2-grids';import { RowDragEventArgs, RowDropEventArgs, RowDropSettingsModel, RowDropSettings, getUid, parentsUntil } from '@syncfusion/ej2-grids';import { LoadingIndicator } from '../models/loading-indicator';import { LoadingIndicatorModel } from '../models/loading-indicator-model';import { ActionEventArgs, TextAlign } from'@syncfusion/ej2-grids';import { DetailDataBoundEventArgs, ClipMode, ColumnChooser} from '@syncfusion/ej2-grids';import { SearchEventArgs, AddEventArgs, EditEventArgs, DeleteEventArgs} from '@syncfusion/ej2-grids';import { SaveEventArgs, CellSaveArgs, BatchAddArgs, BatchCancelArgs, BeginEditArgs, CellEditArgs} from '@syncfusion/ej2-grids';import { FilterSettings } from '../models/filter-settings';import { TextWrapSettings } from '../models/textwrap-settings';import { TextWrapSettingsModel } from '../models/textwrap-settings-model';import {Filter} from '../actions/filter';import { Logger as TreeLogger } from '../actions/logger';import { BeforeCopyEventArgs, BeforePasteEventArgs } from '@syncfusion/ej2-grids';import { TreeClipboard } from '../actions/clipboard';import {Aggregate} from '../actions/summary';import { Reorder } from '../actions/reorder';import { Resize } from '../actions/resize';import { Selection as TreeGridSelection } from '../actions/selection';import { ColumnMenu } from '../actions/column-menu';import { DetailRow } from '../actions/detail-row';import { Freeze } from '../actions/freeze-column';import { Print } from '../actions/print';import * as events from '../base/constant';import { FilterSettingsModel } from '../models/filter-settings-model';import { SearchSettings} from '../models/search-settings';import { SearchSettingsModel } from '../models/search-settings-model';import {RowInfo, RowDataBoundEventArgs, PageEventArgs, FilterEventArgs, FailureEventArgs, SortEventArgs } from '@syncfusion/ej2-grids';import { RowSelectingEventArgs, RowSelectEventArgs, RowDeselectingEventArgs, RowDeselectEventArgs, IIndex, ISelectedCell } from '@syncfusion/ej2-grids';import {ColumnModel as GridColumnModel, Column as GridColumn, CellSelectEventArgs, CellDeselectEventArgs } from '@syncfusion/ej2-grids';import { SelectionSettings } from '../models/selection-settings';import { SelectionSettingsModel } from '../models/selection-settings-model';import {getActualProperties, SortDirection, getObject, ColumnDragEventArgs } from '@syncfusion/ej2-grids';import { PrintMode, Data, IGrid, ContextMenuItemModel } from '@syncfusion/ej2-grids';import { ColumnMenuItem, ColumnMenuItemModel, CheckBoxChangeEventArgs } from '@syncfusion/ej2-grids';import { ExcelExportCompleteArgs, ExcelHeaderQueryCellInfoEventArgs, ExcelQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { PdfExportCompleteArgs, PdfHeaderQueryCellInfoEventArgs, PdfQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { ExcelExportProperties, PdfExportProperties, CellSelectingEventArgs, PrintEventArgs } from '@syncfusion/ej2-grids';import { ColumnMenuOpenEventArgs } from '@syncfusion/ej2-grids';import {BeforeDataBoundArgs} from '@syncfusion/ej2-grids';import { DataManager, ReturnOption, RemoteSaveAdaptor, Query, JsonAdaptor, Deferred, UrlAdaptor } from '@syncfusion/ej2-data';import { createSpinner, hideSpinner, showSpinner, Dialog } from '@syncfusion/ej2-popups';import { isRemoteData, isOffline, extendArray, isCountRequired, findChildrenRecords } from '../utils';import { Grid, QueryCellInfoEventArgs, Logger } from '@syncfusion/ej2-grids';import { Render } from '../renderer/render';import { VirtualTreeContentRenderer } from '../renderer/virtual-tree-content-render';import { DataManipulation } from './data';import { RowDD } from '../actions/rowdragdrop';import { Sort } from '../actions/sort';import { ITreeData, RowExpandedEventArgs, RowCollapsedEventArgs, RowCollapsingEventArgs, TreeGridExcelExportProperties } from './interface';import { DataStateChangeEventArgs, RowExpandingEventArgs, TreeGridPdfExportProperties } from './interface';import { iterateArrayOrObject, GridLine } from '@syncfusion/ej2-grids';import { DataSourceChangedEventArgs, RecordDoubleClickEventArgs, ResizeArgs } from '@syncfusion/ej2-grids';import { ToolbarItems, ToolbarItem, ContextMenuItem, ContextMenuItems, RowPosition, CopyHierarchyType } from '../enum';import { ItemModel, ClickEventArgs, BeforeOpenCloseMenuEventArgs, MenuEventArgs } from '@syncfusion/ej2-navigations';import { PageSettings } from '../models/page-settings';import { PageSettingsModel } from '../models/page-settings-model';import { AggregateRow } from '../models/summary';import { AggregateRowModel } from '../models/summary-model';import { ExcelExport } from '../actions/excel-export';import { PdfExport } from '../actions/pdf-export';import { Toolbar } from '../actions/toolbar';import { Page } from '../actions/page';import { ContextMenu } from '../actions/context-menu';import { EditSettings } from '../models/edit-settings';import { EditSettingsModel } from '../models/edit-settings-model';import { Edit} from '../actions/edit';import { SortSettings } from '../models/sort-settings';import { SortSettingsModel } from '../models/sort-settings-model';import { isHidden, getExpandStatus } from '../utils';import { editAction } from '../actions/crud-actions';import { InfiniteScrollSettings } from '../models/infinite-scroll-settings';import { InfiniteScrollSettingsModel } from '../models/infinite-scroll-settings-model';import { TreeActionEventArgs } from '..';import * as literals from '../base/constant';
1
+ import { Component, addClass, createElement, EventHandler, isNullOrUndefined, Fetch, ModuleDeclaration, extend, merge, SanitizeHtmlHelper} from '@syncfusion/ej2-base';import { removeClass, EmitType, Complex, Collection, KeyboardEventArgs, getValue, NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base';import {Event, Property, NotifyPropertyChanges, INotifyPropertyChanged, setValue, KeyboardEvents, L10n } from '@syncfusion/ej2-base';import { Column, ColumnModel } from '../models/column';import { BeforeBatchSaveArgs, BeforeBatchAddArgs, BatchDeleteArgs, BeforeBatchDeleteArgs, Row, getNumberFormat } from '@syncfusion/ej2-grids';import { GridModel, ColumnQueryModeType, HeaderCellInfoEventArgs, EditSettingsModel as GridEditModel, Freeze as FreezeColumn } from '@syncfusion/ej2-grids';import { RowDragEventArgs, RowDropEventArgs, RowDropSettingsModel, RowDropSettings, getUid, parentsUntil } from '@syncfusion/ej2-grids';import { LoadingIndicator } from '../models/loading-indicator';import { LoadingIndicatorModel } from '../models/loading-indicator-model';import { ActionEventArgs, TextAlign } from'@syncfusion/ej2-grids';import { DetailDataBoundEventArgs, ClipMode, ColumnChooser} from '@syncfusion/ej2-grids';import { SearchEventArgs, AddEventArgs, EditEventArgs, DeleteEventArgs} from '@syncfusion/ej2-grids';import { SaveEventArgs, CellSaveArgs, BatchAddArgs, BatchCancelArgs, BeginEditArgs, CellEditArgs} from '@syncfusion/ej2-grids';import { FilterSettings } from '../models/filter-settings';import { TextWrapSettings } from '../models/textwrap-settings';import { TextWrapSettingsModel } from '../models/textwrap-settings-model';import {Filter} from '../actions/filter';import { Logger as TreeLogger } from '../actions/logger';import { BeforeCopyEventArgs, BeforePasteEventArgs } from '@syncfusion/ej2-grids';import { TreeClipboard } from '../actions/clipboard';import {Aggregate} from '../actions/summary';import { Reorder } from '../actions/reorder';import { Resize } from '../actions/resize';import { Selection as TreeGridSelection } from '../actions/selection';import { ColumnMenu } from '../actions/column-menu';import { DetailRow } from '../actions/detail-row';import { Freeze } from '../actions/freeze-column';import { Print } from '../actions/print';import * as events from '../base/constant';import { FilterSettingsModel } from '../models/filter-settings-model';import { SearchSettings} from '../models/search-settings';import { SearchSettingsModel } from '../models/search-settings-model';import {RowInfo, RowDataBoundEventArgs, PageEventArgs, FilterEventArgs, FailureEventArgs, SortEventArgs } from '@syncfusion/ej2-grids';import { RowSelectingEventArgs, RowSelectEventArgs, RowDeselectingEventArgs, RowDeselectEventArgs, IIndex, ISelectedCell } from '@syncfusion/ej2-grids';import {ColumnModel as GridColumnModel, Column as GridColumn, CellSelectEventArgs, CellDeselectEventArgs } from '@syncfusion/ej2-grids';import { SelectionSettings } from '../models/selection-settings';import { SelectionSettingsModel } from '../models/selection-settings-model';import {getActualProperties, SortDirection, getObject, ColumnDragEventArgs } from '@syncfusion/ej2-grids';import { PrintMode, Data, IGrid, ContextMenuItemModel } from '@syncfusion/ej2-grids';import { ColumnMenuItem, ColumnMenuItemModel, CheckBoxChangeEventArgs } from '@syncfusion/ej2-grids';import { ExcelExportCompleteArgs, ExcelHeaderQueryCellInfoEventArgs, ExcelQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { PdfExportCompleteArgs, PdfHeaderQueryCellInfoEventArgs, PdfQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { ExcelExportProperties, PdfExportProperties, CellSelectingEventArgs, PrintEventArgs } from '@syncfusion/ej2-grids';import { ColumnMenuOpenEventArgs } from '@syncfusion/ej2-grids';import {BeforeDataBoundArgs} from '@syncfusion/ej2-grids';import { DataManager, ReturnOption, RemoteSaveAdaptor, Query, JsonAdaptor, Deferred, UrlAdaptor } from '@syncfusion/ej2-data';import { createSpinner, hideSpinner, showSpinner, Dialog } from '@syncfusion/ej2-popups';import { isRemoteData, isOffline, extendArray, isCountRequired, findChildrenRecords } from '../utils';import { Grid, QueryCellInfoEventArgs, Logger } from '@syncfusion/ej2-grids';import { Render } from '../renderer/render';import { VirtualTreeContentRenderer } from '../renderer/virtual-tree-content-render';import { DataManipulation } from './data';import { RowDD } from '../actions/rowdragdrop';import { Sort } from '../actions/sort';import { ITreeData, RowExpandedEventArgs, RowCollapsedEventArgs, RowCollapsingEventArgs, TreeGridExcelExportProperties } from './interface';import { DataStateChangeEventArgs, RowExpandingEventArgs, TreeGridPdfExportProperties } from './interface';import { iterateArrayOrObject, GridLine } from '@syncfusion/ej2-grids';import { DataSourceChangedEventArgs, RecordDoubleClickEventArgs, ResizeArgs } from '@syncfusion/ej2-grids';import { ToolbarItems, ToolbarItem, ContextMenuItem, ContextMenuItems, RowPosition, CopyHierarchyType } from '../enum';import { ItemModel, ClickEventArgs, BeforeOpenCloseMenuEventArgs, MenuEventArgs } from '@syncfusion/ej2-navigations';import { PageSettings } from '../models/page-settings';import { PageSettingsModel } from '../models/page-settings-model';import { AggregateRow } from '../models/summary';import { AggregateRowModel } from '../models/summary-model';import { ExcelExport } from '../actions/excel-export';import { PdfExport } from '../actions/pdf-export';import { Toolbar } from '../actions/toolbar';import { Page } from '../actions/page';import { ContextMenu } from '../actions/context-menu';import { EditSettings } from '../models/edit-settings';import { EditSettingsModel } from '../models/edit-settings-model';import { Edit} from '../actions/edit';import { SortSettings } from '../models/sort-settings';import { SortSettingsModel } from '../models/sort-settings-model';import { isHidden, getExpandStatus } from '../utils';import { editAction } from '../actions/crud-actions';import { InfiniteScrollSettings } from '../models/infinite-scroll-settings';import { InfiniteScrollSettingsModel } from '../models/infinite-scroll-settings-model';import { TreeActionEventArgs } from '..';import * as literals from '../base/constant';
2
2
  import {ComponentModel} from '@syncfusion/ej2-base';
3
3
 
4
4
  /**
@@ -22,6 +22,7 @@ import { removeClass, Complex, Collection, getValue } from '@syncfusion/ej2-base
22
22
  import { Event, Property, NotifyPropertyChanges, setValue, KeyboardEvents, L10n } from '@syncfusion/ej2-base';
23
23
  import { Column } from '../models/column';
24
24
  import { getNumberFormat } from '@syncfusion/ej2-grids';
25
+ import { Freeze as FreezeColumn } from '@syncfusion/ej2-grids';
25
26
  import { RowDropSettings, getUid } from '@syncfusion/ej2-grids';
26
27
  import { LoadingIndicator } from '../models/loading-indicator';
27
28
  import { FilterSettings } from '../models/filter-settings';
@@ -102,6 +103,11 @@ var TreeGrid = /** @class */ (function (_super) {
102
103
  if (!isNullOrUndefined(_this.injectedModules["" + logger])) {
103
104
  Grid.Inject(Logger);
104
105
  }
106
+ var freezeModulePresent = _this.injectedModules.filter(function (e) {
107
+ if (e.prototype.getModuleName() === 'freeze') {
108
+ Grid.Inject(FreezeColumn);
109
+ }
110
+ });
105
111
  _this.grid = new Grid();
106
112
  return _this;
107
113
  }
@@ -418,19 +424,21 @@ var TreeGrid = /** @class */ (function (_super) {
418
424
  if (!this.enableVirtualization) {
419
425
  target = e.target;
420
426
  parentTarget = target.parentElement;
421
- var cellIndex = parentTarget.cellIndex;
422
- if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
423
- parentTarget = target;
424
- }
425
- summaryElement = this.findnextRowElement(parentTarget);
426
- if (summaryElement !== null) {
427
- var cellIndex_1 = e.target.cellIndex;
428
- var row_1 = summaryElement.children[parseInt(cellIndex_1.toString(), 10)];
429
- addClass([row_1], 'e-focused');
430
- addClass([row_1], 'e-focus');
431
- }
432
- else {
433
- this.clearSelection();
427
+ if (!isNullOrUndefined(parentTarget)) {
428
+ var cellIndex = parentTarget.cellIndex;
429
+ if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
430
+ parentTarget = target;
431
+ }
432
+ summaryElement = this.findnextRowElement(parentTarget);
433
+ if (summaryElement !== null) {
434
+ var cellIndex_1 = e.target.cellIndex;
435
+ var row_1 = summaryElement.children[parseInt(cellIndex_1.toString(), 10)];
436
+ addClass([row_1], 'e-focused');
437
+ addClass([row_1], 'e-focus');
438
+ }
439
+ else {
440
+ this.clearSelection();
441
+ }
434
442
  }
435
443
  }
436
444
  break;
@@ -438,19 +446,21 @@ var TreeGrid = /** @class */ (function (_super) {
438
446
  if (!this.enableVirtualization) {
439
447
  target = e.target;
440
448
  parentTarget = target.parentElement;
441
- var cellIndex = parentTarget.cellIndex;
442
- if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
443
- parentTarget = target;
444
- }
445
- summaryElement = this.findPreviousRowElement(parentTarget);
446
- if (summaryElement !== null) {
447
- var cIndex = e.target.cellIndex;
448
- var rows = summaryElement.children[parseInt(cIndex.toString(), 10)];
449
- addClass([rows], 'e-focused');
450
- addClass([rows], 'e-focus');
451
- }
452
- else {
453
- this.clearSelection();
449
+ if (!isNullOrUndefined(parentTarget)) {
450
+ var cellIndex = parentTarget.cellIndex;
451
+ if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
452
+ parentTarget = target;
453
+ }
454
+ summaryElement = this.findPreviousRowElement(parentTarget);
455
+ if (summaryElement !== null) {
456
+ var cIndex = e.target.cellIndex;
457
+ var rows = summaryElement.children[parseInt(cIndex.toString(), 10)];
458
+ addClass([rows], 'e-focused');
459
+ addClass([rows], 'e-focus');
460
+ }
461
+ else {
462
+ this.clearSelection();
463
+ }
454
464
  }
455
465
  }
456
466
  }
@@ -2507,11 +2517,11 @@ var TreeGrid = /** @class */ (function (_super) {
2507
2517
  };
2508
2518
  TreeGrid.prototype.setFrozenCount = function () {
2509
2519
  var persist3 = 'setFrozenCount';
2510
- this.grid["" + persist3].apply(this);
2520
+ this.grid["" + persist3].apply(this.grid);
2511
2521
  };
2512
2522
  TreeGrid.prototype.splitFrozenCount = function (columns) {
2513
2523
  var persist4 = 'splitFrozenCount';
2514
- this.grid["" + persist4].apply(this, [columns]);
2524
+ this.grid["" + persist4].apply(this.grid, [columns]);
2515
2525
  };
2516
2526
  TreeGrid.prototype.isFrozenGrid = function () {
2517
2527
  return this.grid.isFrozenGrid();
@@ -2805,7 +2815,7 @@ var TreeGrid = /** @class */ (function (_super) {
2805
2815
  if (!this.isExpandingEventTriggered) {
2806
2816
  this.trigger(events.expanding, args, function (expandingArgs) {
2807
2817
  _this.expandAllPrevent = expandingArgs.cancel;
2808
- if (!expandingArgs.cancel) {
2818
+ if (!expandingArgs.cancel && !isNullOrUndefined(record)) {
2809
2819
  if (expandingArgs.expandAll) {
2810
2820
  _this.expandCollapseAllChildren(record, 'expand', key, level);
2811
2821
  }
@@ -2931,7 +2941,7 @@ var TreeGrid = /** @class */ (function (_super) {
2931
2941
  else if (!this.isCollapseAll || (this.isCollapseAll && isRemoteData(this))) {
2932
2942
  var args = { data: record, row: row, cancel: false };
2933
2943
  this.trigger(events.collapsing, args, function (collapsingArgs) {
2934
- if (!collapsingArgs.cancel) {
2944
+ if (!collapsingArgs.cancel && !isNullOrUndefined(record)) {
2935
2945
  _this.collapseRows(row, record, parentRec, key);
2936
2946
  }
2937
2947
  });
@@ -427,7 +427,12 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
427
427
  }
428
428
  if (firsttdinx === 0) {
429
429
  this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?
430
- scrollArgs.offset.top - (outBuffer * this.parent.getRowHeight()) + 10 : 0;
430
+ scrollArgs.offset.top - (outBuffer * this.parent.getRowHeight()) + rowHeight : 0;
431
+ }
432
+ else if (this.parent.getFrozenColumns() > 0) {
433
+ scrollArgs.offset.top = scrollArgs.offset.top + 80;
434
+ this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?
435
+ scrollArgs.offset.top - (outBuffer * rowHeight) + 10 : 0;
431
436
  }
432
437
  else {
433
438
  this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?
@@ -467,6 +472,9 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
467
472
  if (this.parent.allowRowDragAndDrop) {
468
473
  this.translateY = scrollArgs.offset.top - rowHeight * 2;
469
474
  }
475
+ else if (this.parent.getFrozenColumns() > 0) {
476
+ this.translateY = scrollArgs.offset.top - ((rowHeight * 2) + this.parent.pageSettings.pageSize);
477
+ }
470
478
  else {
471
479
  this.translateY = scrollArgs.offset.top;
472
480
  }