@syncfusion/ej2-treegrid 32.1.19 → 32.1.21
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/dist/ej2-treegrid.min.js +10 -1
- package/dist/ej2-treegrid.umd.min.js +10 -1
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +4 -3
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +4 -3
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +10 -1
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +9 -0
- package/package.json +2 -2
- package/src/treegrid/base/treegrid.js +2 -2
- package/src/treegrid/renderer/virtual-tree-content-render.js +2 -1
|
@@ -4850,7 +4850,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4850
4850
|
if (RecordsCount === 0 && this.columns.length === 0) {
|
|
4851
4851
|
failureCases.push('Either of the Data source or columns should be given.');
|
|
4852
4852
|
}
|
|
4853
|
-
if (this.frozenColumns > 0 && this.columnModel.filter((col) => col.isFrozen)) {
|
|
4853
|
+
if (this.frozenColumns > 0 && this.columnModel.filter((col) => col.isFrozen).length > 0) {
|
|
4854
4854
|
failureCases.push('Use only one attribute for Frozen either IsFrozen or FrozenColumns.');
|
|
4855
4855
|
}
|
|
4856
4856
|
if (this.enableVirtualization && !isNullOrUndefined(this.detailTemplate)) {
|
|
@@ -4860,7 +4860,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4860
4860
|
&& (!isNullOrUndefined(this.detailTemplate) || !isNullOrUndefined(this.rowTemplate))) {
|
|
4861
4861
|
failureCases.push('Frozen rows and columns are not supported with the Detail template and row template.');
|
|
4862
4862
|
}
|
|
4863
|
-
if ((this.frozenColumns > 0 || this.columnModel.filter((col) => col.isFrozen).length > 0 || this.frozenRows > 0) && this.editSettings.mode === 'Cell') {
|
|
4863
|
+
if ((this.frozenColumns > 0 || this.columnModel.filter((col) => col.isFrozen).length > 0 || this.frozenRows > 0) && this.editSettings.allowEditing && this.editSettings.mode === 'Cell') {
|
|
4864
4864
|
failureCases.push('Frozen rows and columns are not supported with cell editing.');
|
|
4865
4865
|
}
|
|
4866
4866
|
if (this.allowSelection && !isNullOrUndefined(this.rowTemplate)) {
|
|
@@ -14625,7 +14625,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
14625
14625
|
*/
|
|
14626
14626
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14627
14627
|
getRowCollection(index, isMovable, isRowObject, isFrozenRight) {
|
|
14628
|
-
const
|
|
14628
|
+
const rows = this.parent.getRows();
|
|
14629
|
+
const startIdx = rows.length > 0 ? parseInt(rows[0].getAttribute(ariaRowIndex), 10) - 1 : 0;
|
|
14629
14630
|
const rowCollection = this.parent.getDataRows();
|
|
14630
14631
|
const collection = isRowObject ? this.parent.getCurrentViewRecords() : rowCollection;
|
|
14631
14632
|
let selectedRow = collection[index - startIdx];
|