@syncfusion/ej2-treegrid 32.1.21 → 32.1.22-1533505
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/README.md +1 -1
- package/dist/ej2-treegrid.min.js +1 -10
- package/dist/ej2-treegrid.umd.min.js +1 -10
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +20 -5
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +20 -5
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +1 -10
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/package.json +2 -2
- package/src/treegrid/actions/selection.js +9 -4
- package/src/treegrid/actions/virtual-scroll.js +1 -0
- package/src/treegrid/base/treegrid-model.d.ts +11 -11
- package/src/treegrid/base/treegrid.d.ts +23 -22
- package/src/treegrid/base/treegrid.js +21 -12
package/dist/global/index.d.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* filename: index.d.ts
|
|
3
|
-
* version : 32.1.21
|
|
4
|
-
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
|
-
* Use of this code is subject to the terms of our license.
|
|
6
|
-
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
-
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
-
* applicable laws.
|
|
9
|
-
*/
|
|
10
1
|
import * as _treegrid from '@syncfusion/ej2-treegrid';
|
|
11
2
|
|
|
12
3
|
export declare namespace ej {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-treegrid",
|
|
3
|
-
"version": "32.1.
|
|
3
|
+
"version": "32.1.22-1533505",
|
|
4
4
|
"description": "Essential JS 2 TreeGrid Component",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@syncfusion/ej2-base": "~32.1.19",
|
|
12
12
|
"@syncfusion/ej2-data": "~32.1.19",
|
|
13
|
-
"@syncfusion/ej2-grids": "~32.1.
|
|
13
|
+
"@syncfusion/ej2-grids": "~32.1.22",
|
|
14
14
|
"@syncfusion/ej2-popups": "~32.1.19"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {},
|
|
@@ -625,7 +625,7 @@ var Selection = /** @class */ (function () {
|
|
|
625
625
|
var newSelectedIndexes = [];
|
|
626
626
|
for (var _i = 0, currentlySelectedItemsInOrder_1 = currentlySelectedItemsInOrder; _i < currentlySelectedItemsInOrder_1.length; _i++) {
|
|
627
627
|
var item = currentlySelectedItemsInOrder_1[_i];
|
|
628
|
-
if (item.hasChildRecords && isFilterOrSearch && item.level === 0) {
|
|
628
|
+
if (item.hasChildRecords && isFilterOrSearch && item.level === 0 && this.parent.autoCheckHierarchy) {
|
|
629
629
|
this.updateParentSelection(item);
|
|
630
630
|
}
|
|
631
631
|
if (item.uniqueID && item.checkboxState === 'check') {
|
|
@@ -957,9 +957,14 @@ var Selection = /** @class */ (function () {
|
|
|
957
957
|
if ((requestType === 'filtering' || requestType === 'searching' || requestType === 'refresh' ||
|
|
958
958
|
requestType === 'sorting' || requestType === 'paging' || requestType === 'expanding' ||
|
|
959
959
|
requestType === 'expand' || requestType === 'collapsing' || requestType === 'collapse') && !isRemoteData(this.parent)) {
|
|
960
|
-
this.
|
|
961
|
-
|
|
962
|
-
|
|
960
|
+
if (!(isCheckboxcolumn(this.parent) && (requestType === 'refresh' && this.parent['isVirtualExpandCollapse']))) {
|
|
961
|
+
this.selectedItems = [];
|
|
962
|
+
this.selectedUidMap = new Map();
|
|
963
|
+
this.selectedIndexes = [];
|
|
964
|
+
}
|
|
965
|
+
if (requestType === 'filtering' || requestType === 'searching' || requestType === 'sorting') {
|
|
966
|
+
this.headerSelection(false);
|
|
967
|
+
}
|
|
963
968
|
this.refreshVisibleCheckboxes();
|
|
964
969
|
if (this.parent.autoCheckHierarchy) {
|
|
965
970
|
this.updateHeaderCheckboxState();
|
|
@@ -97,6 +97,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
97
97
|
count: this.parent.flatData.length
|
|
98
98
|
};
|
|
99
99
|
this.handleSelection();
|
|
100
|
+
this.parent['isVirtualExpandCollapse'] = true;
|
|
100
101
|
var requestType = getValue('isCollapseAll', this.parent) ? 'collapseAll' : 'refresh';
|
|
101
102
|
getValue('grid.renderModule', this.parent).dataManagerSuccess(actionDetails, { requestType: requestType });
|
|
102
103
|
};
|
|
@@ -121,7 +121,7 @@ export interface TreeGridModel extends ComponentModel{
|
|
|
121
121
|
dataSource?: Object | DataManager;
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
* Defines the external [Query](https://ej2.syncfusion.com/documentation/data/
|
|
124
|
+
* Defines the external [Query](https://ej2.syncfusion.com/documentation/api/data/query)
|
|
125
125
|
* that will be executed along with data processing.
|
|
126
126
|
*
|
|
127
127
|
* @default null
|
|
@@ -299,7 +299,7 @@ export interface TreeGridModel extends ComponentModel{
|
|
|
299
299
|
/**
|
|
300
300
|
* The detail template allows you to show or hide additional information about a particular row.
|
|
301
301
|
*
|
|
302
|
-
* > It accepts either the [template string](
|
|
302
|
+
* > It accepts either the [template string](../../common/template/)
|
|
303
303
|
* or the HTML element ID.
|
|
304
304
|
*
|
|
305
305
|
* @aspType string
|
|
@@ -403,7 +403,7 @@ export interface TreeGridModel extends ComponentModel{
|
|
|
403
403
|
/**
|
|
404
404
|
* The row template that renders customized rows from the given template.
|
|
405
405
|
* By default, TreeGrid renders a table row for every data source item.
|
|
406
|
-
* > * It accepts either [template string](
|
|
406
|
+
* > * It accepts either [template string](../../common/template/)
|
|
407
407
|
* or HTML element ID.
|
|
408
408
|
* > * The row template must be a table row.
|
|
409
409
|
*
|
|
@@ -497,7 +497,7 @@ export interface TreeGridModel extends ComponentModel{
|
|
|
497
497
|
/**
|
|
498
498
|
* The empty record template that renders customized element or text or image instead of displaying the empty record message in the TreeGrid.
|
|
499
499
|
*
|
|
500
|
-
* > It accepts either the [template string](../../common/template
|
|
500
|
+
* > It accepts either the [template string](../../common/template/) or the HTML element ID.
|
|
501
501
|
*
|
|
502
502
|
* @default null
|
|
503
503
|
* @aspType string
|
|
@@ -804,7 +804,7 @@ export interface TreeGridModel extends ComponentModel{
|
|
|
804
804
|
* Invoke the done method from the argument to start rendering after an edit operation.
|
|
805
805
|
*
|
|
806
806
|
* @event dataSourceChanged
|
|
807
|
-
|
|
807
|
+
* @deprecated
|
|
808
808
|
*/
|
|
809
809
|
dataSourceChanged?: EmitType<DataSourceChangedEventArgs>;
|
|
810
810
|
|
|
@@ -813,7 +813,7 @@ export interface TreeGridModel extends ComponentModel{
|
|
|
813
813
|
* The current view data and total record count should be assigned to the dataSource based on the action performed.
|
|
814
814
|
*
|
|
815
815
|
* @event dataStateChange
|
|
816
|
-
|
|
816
|
+
* @deprecated
|
|
817
817
|
*/
|
|
818
818
|
dataStateChange?: EmitType<DataStateChangeEventArgs>;
|
|
819
819
|
|
|
@@ -865,7 +865,7 @@ export interface TreeGridModel extends ComponentModel{
|
|
|
865
865
|
* Triggers before the selected row is deselected.
|
|
866
866
|
*
|
|
867
867
|
* @event rowDeselecting
|
|
868
|
-
|
|
868
|
+
* @deprecated
|
|
869
869
|
*/
|
|
870
870
|
rowDeselecting?: EmitType<RowDeselectEventArgs>;
|
|
871
871
|
|
|
@@ -894,7 +894,7 @@ export interface TreeGridModel extends ComponentModel{
|
|
|
894
894
|
* Triggers before the column menu opens.
|
|
895
895
|
*
|
|
896
896
|
* @event columnMenuOpen
|
|
897
|
-
|
|
897
|
+
* @deprecated
|
|
898
898
|
*/
|
|
899
899
|
columnMenuOpen?: EmitType<ColumnMenuOpenEventArgs>;
|
|
900
900
|
|
|
@@ -916,7 +916,7 @@ export interface TreeGridModel extends ComponentModel{
|
|
|
916
916
|
* Triggers before a selected cell is deselected.
|
|
917
917
|
*
|
|
918
918
|
* @event cellDeselecting
|
|
919
|
-
|
|
919
|
+
* @deprecated
|
|
920
920
|
*/
|
|
921
921
|
cellDeselecting?: EmitType<CellDeselectEventArgs>;
|
|
922
922
|
|
|
@@ -924,7 +924,7 @@ export interface TreeGridModel extends ComponentModel{
|
|
|
924
924
|
* Triggers when a selected cell is deselected.
|
|
925
925
|
*
|
|
926
926
|
* @event cellDeselected
|
|
927
|
-
|
|
927
|
+
* @deprecated
|
|
928
928
|
*/
|
|
929
929
|
cellDeselected?: EmitType<CellDeselectEventArgs>;
|
|
930
930
|
|
|
@@ -932,7 +932,7 @@ export interface TreeGridModel extends ComponentModel{
|
|
|
932
932
|
* Triggers when column resizing starts.
|
|
933
933
|
*
|
|
934
934
|
* @event resizeStart
|
|
935
|
-
|
|
935
|
+
* @deprecated
|
|
936
936
|
*/
|
|
937
937
|
resizeStart?: EmitType<ResizeArgs>;
|
|
938
938
|
|
|
@@ -125,6 +125,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
125
125
|
private freezeColumnRefresh;
|
|
126
126
|
private componentRefresh;
|
|
127
127
|
private isComponentRefresh;
|
|
128
|
+
private isVirtualExpandCollapse;
|
|
128
129
|
private isExcel;
|
|
129
130
|
/** @hidden */
|
|
130
131
|
initialRender: boolean;
|
|
@@ -303,7 +304,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
303
304
|
*/
|
|
304
305
|
dataSource: Object | DataManager;
|
|
305
306
|
/**
|
|
306
|
-
* Defines the external [Query](https://ej2.syncfusion.com/documentation/data/
|
|
307
|
+
* Defines the external [Query](https://ej2.syncfusion.com/documentation/api/data/query)
|
|
307
308
|
* that will be executed along with data processing.
|
|
308
309
|
*
|
|
309
310
|
* @default null
|
|
@@ -458,7 +459,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
458
459
|
/**
|
|
459
460
|
* The detail template allows you to show or hide additional information about a particular row.
|
|
460
461
|
*
|
|
461
|
-
* > It accepts either the [template string](
|
|
462
|
+
* > It accepts either the [template string](../../common/template/)
|
|
462
463
|
* or the HTML element ID.
|
|
463
464
|
*
|
|
464
465
|
* @aspType string
|
|
@@ -554,7 +555,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
554
555
|
/**
|
|
555
556
|
* The row template that renders customized rows from the given template.
|
|
556
557
|
* By default, TreeGrid renders a table row for every data source item.
|
|
557
|
-
* > * It accepts either [template string](
|
|
558
|
+
* > * It accepts either [template string](../../common/template/)
|
|
558
559
|
* or HTML element ID.
|
|
559
560
|
* > * The row template must be a table row.
|
|
560
561
|
*
|
|
@@ -638,7 +639,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
638
639
|
/**
|
|
639
640
|
* The empty record template that renders customized element or text or image instead of displaying the empty record message in the TreeGrid.
|
|
640
641
|
*
|
|
641
|
-
* > It accepts either the [template string](../../common/template
|
|
642
|
+
* > It accepts either the [template string](../../common/template/) or the HTML element ID.
|
|
642
643
|
*
|
|
643
644
|
* @default null
|
|
644
645
|
* @aspType string
|
|
@@ -906,7 +907,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
906
907
|
* Invoke the done method from the argument to start rendering after an edit operation.
|
|
907
908
|
*
|
|
908
909
|
* @event dataSourceChanged
|
|
909
|
-
|
|
910
|
+
* @deprecated
|
|
910
911
|
*/
|
|
911
912
|
dataSourceChanged: EmitType<DataSourceChangedEventArgs>;
|
|
912
913
|
/**
|
|
@@ -914,7 +915,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
914
915
|
* The current view data and total record count should be assigned to the dataSource based on the action performed.
|
|
915
916
|
*
|
|
916
917
|
* @event dataStateChange
|
|
917
|
-
|
|
918
|
+
* @deprecated
|
|
918
919
|
*/
|
|
919
920
|
dataStateChange: EmitType<DataStateChangeEventArgs>;
|
|
920
921
|
/**
|
|
@@ -959,7 +960,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
959
960
|
* Triggers before the selected row is deselected.
|
|
960
961
|
*
|
|
961
962
|
* @event rowDeselecting
|
|
962
|
-
|
|
963
|
+
* @deprecated
|
|
963
964
|
*/
|
|
964
965
|
rowDeselecting: EmitType<RowDeselectEventArgs>;
|
|
965
966
|
/**
|
|
@@ -984,7 +985,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
984
985
|
* Triggers before the column menu opens.
|
|
985
986
|
*
|
|
986
987
|
* @event columnMenuOpen
|
|
987
|
-
|
|
988
|
+
* @deprecated
|
|
988
989
|
*/
|
|
989
990
|
columnMenuOpen: EmitType<ColumnMenuOpenEventArgs>;
|
|
990
991
|
/**
|
|
@@ -1003,21 +1004,21 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
1003
1004
|
* Triggers before a selected cell is deselected.
|
|
1004
1005
|
*
|
|
1005
1006
|
* @event cellDeselecting
|
|
1006
|
-
|
|
1007
|
+
* @deprecated
|
|
1007
1008
|
*/
|
|
1008
1009
|
cellDeselecting: EmitType<CellDeselectEventArgs>;
|
|
1009
1010
|
/**
|
|
1010
1011
|
* Triggers when a selected cell is deselected.
|
|
1011
1012
|
*
|
|
1012
1013
|
* @event cellDeselected
|
|
1013
|
-
|
|
1014
|
+
* @deprecated
|
|
1014
1015
|
*/
|
|
1015
1016
|
cellDeselected: EmitType<CellDeselectEventArgs>;
|
|
1016
1017
|
/**
|
|
1017
1018
|
* Triggers when column resizing starts.
|
|
1018
1019
|
*
|
|
1019
1020
|
* @event resizeStart
|
|
1020
|
-
|
|
1021
|
+
* @deprecated
|
|
1021
1022
|
*/
|
|
1022
1023
|
resizeStart: EmitType<ResizeArgs>;
|
|
1023
1024
|
/**
|
|
@@ -2246,7 +2247,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
2246
2247
|
* @param {number} columnIndex - Specifies the column index.
|
|
2247
2248
|
* @returns {Element} - Returns movable cell element from the indexes passed
|
|
2248
2249
|
*
|
|
2249
|
-
|
|
2250
|
+
* @deprecated This method is deprecated. Use getCellFromIndex method instead.
|
|
2250
2251
|
*/
|
|
2251
2252
|
getMovableCellFromIndex(rowIndex: number, columnIndex: number): Element;
|
|
2252
2253
|
/**
|
|
@@ -2254,7 +2255,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
2254
2255
|
*
|
|
2255
2256
|
* @returns {Element[]} - Returns element collection of movable rows
|
|
2256
2257
|
*
|
|
2257
|
-
|
|
2258
|
+
* @deprecated This method is deprecated. Use getDataRows method instead.
|
|
2258
2259
|
*/
|
|
2259
2260
|
getMovableDataRows(): Element[];
|
|
2260
2261
|
/**
|
|
@@ -2263,14 +2264,14 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
2263
2264
|
* @param {number} index - Specifies the row index.
|
|
2264
2265
|
* @returns {Element} - Returns movable row based on index passed
|
|
2265
2266
|
*
|
|
2266
|
-
|
|
2267
|
+
* @deprecated This method is deprecated. Use getRowByIndex method instead.
|
|
2267
2268
|
*/
|
|
2268
2269
|
getMovableRowByIndex(index: number): Element;
|
|
2269
2270
|
/**
|
|
2270
2271
|
* Gets the TreeGrid's movable content rows from frozen treegrid.
|
|
2271
2272
|
*
|
|
2272
2273
|
* @returns {Element[]}: Returns movable row element
|
|
2273
|
-
|
|
2274
|
+
* @deprecated This method is deprecated. Use getRows method instead.
|
|
2274
2275
|
*/
|
|
2275
2276
|
getMovableRows(): Element[];
|
|
2276
2277
|
/**
|
|
@@ -2279,7 +2280,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
2279
2280
|
* @param {number} index - Specifies the row index.
|
|
2280
2281
|
* @returns {Element} returns the element
|
|
2281
2282
|
*
|
|
2282
|
-
|
|
2283
|
+
* @deprecated This method is deprecated. Use getRowByIndex method instead.
|
|
2283
2284
|
*/
|
|
2284
2285
|
getFrozenRightRowByIndex(index: number): Element;
|
|
2285
2286
|
/**
|
|
@@ -2287,7 +2288,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
2287
2288
|
*
|
|
2288
2289
|
* @returns {Element[]} returns the element
|
|
2289
2290
|
*
|
|
2290
|
-
|
|
2291
|
+
* @deprecated This method is deprecated. Use getRows method instead.
|
|
2291
2292
|
*/
|
|
2292
2293
|
getFrozenRightRows(): Element[];
|
|
2293
2294
|
/**
|
|
@@ -2295,7 +2296,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
2295
2296
|
*
|
|
2296
2297
|
* @returns {Element[]} Returns the Element
|
|
2297
2298
|
*
|
|
2298
|
-
|
|
2299
|
+
* @deprecated This method is deprecated. Use getDataRows method instead.
|
|
2299
2300
|
*/
|
|
2300
2301
|
getFrozenRightDataRows(): Element[];
|
|
2301
2302
|
/**
|
|
@@ -2305,7 +2306,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
2305
2306
|
* @param {number} columnIndex - Specifies the column index.
|
|
2306
2307
|
* @returns {Element} Returns the Element
|
|
2307
2308
|
*
|
|
2308
|
-
|
|
2309
|
+
* @deprecated This method is deprecated. Use getCellFromIndex method instead.
|
|
2309
2310
|
*/
|
|
2310
2311
|
getFrozenRightCellFromIndex(rowIndex: number, columnIndex: number): Element;
|
|
2311
2312
|
/**
|
|
@@ -2314,7 +2315,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
2314
2315
|
* @param {number} index - Specifies the column index.
|
|
2315
2316
|
* @returns {Element} Returns the Element
|
|
2316
2317
|
*
|
|
2317
|
-
|
|
2318
|
+
* @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
|
|
2318
2319
|
*/
|
|
2319
2320
|
getFrozenLeftColumnHeaderByIndex(index: number): Element;
|
|
2320
2321
|
/**
|
|
@@ -2323,7 +2324,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
2323
2324
|
* @param {number} index - Specifies the column index.
|
|
2324
2325
|
* @returns {Element} Returns the Element
|
|
2325
2326
|
*
|
|
2326
|
-
|
|
2327
|
+
* @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
|
|
2327
2328
|
*/
|
|
2328
2329
|
getFrozenRightColumnHeaderByIndex(index: number): Element;
|
|
2329
2330
|
/**
|
|
@@ -2332,7 +2333,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
2332
2333
|
* @param {number} index - Specifies the column index.
|
|
2333
2334
|
* @returns {Element} Returns the Element
|
|
2334
2335
|
*
|
|
2335
|
-
|
|
2336
|
+
* @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
|
|
2336
2337
|
*/
|
|
2337
2338
|
getMovableColumnHeaderByIndex(index: number): Element;
|
|
2338
2339
|
/**
|
|
@@ -81,6 +81,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
81
81
|
_this.freezeColumnRefresh = true;
|
|
82
82
|
_this.componentRefresh = Component.prototype.refresh;
|
|
83
83
|
_this.isComponentRefresh = false;
|
|
84
|
+
_this.isVirtualExpandCollapse = false;
|
|
84
85
|
_this.objectEqualityChecker = function (old, current) {
|
|
85
86
|
if (old) {
|
|
86
87
|
var keys = Object.keys(old);
|
|
@@ -877,12 +878,18 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
877
878
|
this.renderComplete();
|
|
878
879
|
var destroyTemplate = 'destroyTemplate';
|
|
879
880
|
var destroyTemplateFn = this.grid["" + destroyTemplate];
|
|
881
|
+
var isGantt = this['isFromGantt'] && this.isReact;
|
|
880
882
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
881
883
|
this.grid["" + destroyTemplate] = function (args, index, callback) {
|
|
882
884
|
destroyTemplateFn.apply(_this.grid);
|
|
883
885
|
var portals = 'portals';
|
|
884
886
|
if (!(_this.isReact && isNullOrUndefined(_this["" + portals]))) {
|
|
885
|
-
|
|
887
|
+
if (isGantt) {
|
|
888
|
+
_this['root'].clearTemplate(args, index, callback);
|
|
889
|
+
}
|
|
890
|
+
else {
|
|
891
|
+
_this.clearTemplate(args, index, callback);
|
|
892
|
+
}
|
|
886
893
|
}
|
|
887
894
|
else if (!isNullOrUndefined(callback)) {
|
|
888
895
|
callback();
|
|
@@ -1570,6 +1577,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
1570
1577
|
_this.notify(events.batchSave, args);
|
|
1571
1578
|
}
|
|
1572
1579
|
_this.notify('updateGridActions', args);
|
|
1580
|
+
_this.isVirtualExpandCollapse = false;
|
|
1573
1581
|
if (args.requestType === 'save' && _this.aggregates.map(function (ag) { return ag.showChildSummary === true; }).length) {
|
|
1574
1582
|
_this.grid.refresh();
|
|
1575
1583
|
}
|
|
@@ -2588,6 +2596,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2588
2596
|
var table = this.getContentTable();
|
|
2589
2597
|
var sHeight = table.scrollHeight;
|
|
2590
2598
|
var clientHeight = this.getContent().clientHeight;
|
|
2599
|
+
removeClass(table.querySelectorAll('td.e-lastrowcell'), 'e-lastrowcell');
|
|
2591
2600
|
this.lastRowBorder(this.getRows()[currentRecords.indexOf(record)], sHeight <= clientHeight);
|
|
2592
2601
|
}
|
|
2593
2602
|
};
|
|
@@ -4383,7 +4392,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4383
4392
|
* @param {number} columnIndex - Specifies the column index.
|
|
4384
4393
|
* @returns {Element} - Returns movable cell element from the indexes passed
|
|
4385
4394
|
*
|
|
4386
|
-
|
|
4395
|
+
* @deprecated This method is deprecated. Use getCellFromIndex method instead.
|
|
4387
4396
|
*/
|
|
4388
4397
|
TreeGrid.prototype.getMovableCellFromIndex = function (rowIndex, columnIndex) {
|
|
4389
4398
|
return this.grid.getCellFromIndex(rowIndex, columnIndex);
|
|
@@ -4393,7 +4402,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4393
4402
|
*
|
|
4394
4403
|
* @returns {Element[]} - Returns element collection of movable rows
|
|
4395
4404
|
*
|
|
4396
|
-
|
|
4405
|
+
* @deprecated This method is deprecated. Use getDataRows method instead.
|
|
4397
4406
|
*/
|
|
4398
4407
|
TreeGrid.prototype.getMovableDataRows = function () {
|
|
4399
4408
|
return this.grid.getDataRows();
|
|
@@ -4404,7 +4413,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4404
4413
|
* @param {number} index - Specifies the row index.
|
|
4405
4414
|
* @returns {Element} - Returns movable row based on index passed
|
|
4406
4415
|
*
|
|
4407
|
-
|
|
4416
|
+
* @deprecated This method is deprecated. Use getRowByIndex method instead.
|
|
4408
4417
|
*/
|
|
4409
4418
|
TreeGrid.prototype.getMovableRowByIndex = function (index) {
|
|
4410
4419
|
return this.grid.getRowByIndex(index);
|
|
@@ -4413,7 +4422,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4413
4422
|
* Gets the TreeGrid's movable content rows from frozen treegrid.
|
|
4414
4423
|
*
|
|
4415
4424
|
* @returns {Element[]}: Returns movable row element
|
|
4416
|
-
|
|
4425
|
+
* @deprecated This method is deprecated. Use getRows method instead.
|
|
4417
4426
|
*/
|
|
4418
4427
|
TreeGrid.prototype.getMovableRows = function () {
|
|
4419
4428
|
return this.grid.getRows();
|
|
@@ -4424,7 +4433,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4424
4433
|
* @param {number} index - Specifies the row index.
|
|
4425
4434
|
* @returns {Element} returns the element
|
|
4426
4435
|
*
|
|
4427
|
-
|
|
4436
|
+
* @deprecated This method is deprecated. Use getRowByIndex method instead.
|
|
4428
4437
|
*/
|
|
4429
4438
|
TreeGrid.prototype.getFrozenRightRowByIndex = function (index) {
|
|
4430
4439
|
return this.grid.getRowByIndex(index);
|
|
@@ -4434,7 +4443,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4434
4443
|
*
|
|
4435
4444
|
* @returns {Element[]} returns the element
|
|
4436
4445
|
*
|
|
4437
|
-
|
|
4446
|
+
* @deprecated This method is deprecated. Use getRows method instead.
|
|
4438
4447
|
*/
|
|
4439
4448
|
TreeGrid.prototype.getFrozenRightRows = function () {
|
|
4440
4449
|
return this.grid.getRows();
|
|
@@ -4444,7 +4453,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4444
4453
|
*
|
|
4445
4454
|
* @returns {Element[]} Returns the Element
|
|
4446
4455
|
*
|
|
4447
|
-
|
|
4456
|
+
* @deprecated This method is deprecated. Use getDataRows method instead.
|
|
4448
4457
|
*/
|
|
4449
4458
|
TreeGrid.prototype.getFrozenRightDataRows = function () {
|
|
4450
4459
|
return this.grid.getDataRows();
|
|
@@ -4456,7 +4465,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4456
4465
|
* @param {number} columnIndex - Specifies the column index.
|
|
4457
4466
|
* @returns {Element} Returns the Element
|
|
4458
4467
|
*
|
|
4459
|
-
|
|
4468
|
+
* @deprecated This method is deprecated. Use getCellFromIndex method instead.
|
|
4460
4469
|
*/
|
|
4461
4470
|
TreeGrid.prototype.getFrozenRightCellFromIndex = function (rowIndex, columnIndex) {
|
|
4462
4471
|
return this.grid.getCellFromIndex(rowIndex, columnIndex);
|
|
@@ -4467,7 +4476,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4467
4476
|
* @param {number} index - Specifies the column index.
|
|
4468
4477
|
* @returns {Element} Returns the Element
|
|
4469
4478
|
*
|
|
4470
|
-
|
|
4479
|
+
* @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
|
|
4471
4480
|
*/
|
|
4472
4481
|
TreeGrid.prototype.getFrozenLeftColumnHeaderByIndex = function (index) {
|
|
4473
4482
|
return this.grid.getColumnHeaderByIndex(index);
|
|
@@ -4478,7 +4487,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4478
4487
|
* @param {number} index - Specifies the column index.
|
|
4479
4488
|
* @returns {Element} Returns the Element
|
|
4480
4489
|
*
|
|
4481
|
-
|
|
4490
|
+
* @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
|
|
4482
4491
|
*/
|
|
4483
4492
|
TreeGrid.prototype.getFrozenRightColumnHeaderByIndex = function (index) {
|
|
4484
4493
|
return this.grid.getColumnHeaderByIndex(index);
|
|
@@ -4489,7 +4498,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4489
4498
|
* @param {number} index - Specifies the column index.
|
|
4490
4499
|
* @returns {Element} Returns the Element
|
|
4491
4500
|
*
|
|
4492
|
-
|
|
4501
|
+
* @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
|
|
4493
4502
|
*/
|
|
4494
4503
|
TreeGrid.prototype.getMovableColumnHeaderByIndex = function (index) {
|
|
4495
4504
|
return this.grid.getColumnHeaderByIndex(index);
|