Skip to content

Commit 620871f

Browse files
committed
DataGrid: fix calculate group offsets on collapsing a new group (T1325181)
1 parent 3c1eada commit 620871f

4 files changed

Lines changed: 579 additions & 41 deletions

File tree

packages/devextreme/js/__internal/grids/data_grid/grouping/m_grouping_core.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { when } from '@js/core/utils/deferred';
44
import gridCoreUtils from '@ts/grids/grid_core/m_utils';
55

66
import gridCore from '../m_core';
7+
import type { GroupInfoData } from './types';
78

89
export function createOffsetFilter(path, storeLoadOptions, lastLevelOnly?) {
910
const groups = normalizeSortingInfo(storeLoadOptions.group);
@@ -206,7 +207,7 @@ export class GroupingHelper {
206207
groupsInfo.sort((a, b) => a.offset - b.offset);
207208
}
208209

209-
public findGroupInfo(path) {
210+
public findGroupInfo(path): GroupInfoData | undefined {
210211
const that = this;
211212
let groupInfo;
212213
let groupsInfo = that._groupsInfo;

0 commit comments

Comments
 (0)