[]
        
(Showing Draft Content)

FlexGrid의 셀 병합(Cell Merging)

FlexGrid는 콘텐츠 기반 셀 병합(Cell Merging)을 지원합니다.

셀 병합을 활성화하려면, allowMerging 속성을 설정하여 병합하려는 그리드 부분을 나타내고, 특정 행과 열의 allowMerging 속성을 true로 설정합니다. 이렇게 하면 그리드가 동일한 내용을 가진 셀을 병합하여 데이터를 시각적으로 그룹화합니다.

아래 예시에서, "Country" 및 "Active" 열의 allowMerging 속성이 true로 설정되어 있습니다.

var theGrid = new wijmo.grid.FlexGrid('#theGrid', {
    allowMerging: 'Cells',
    isReadOnly: true,
    showAlternatingRows: false,
    autoGenerateColumns: false,
    columns: [
      { binding: 'country', header: 'Country', allowMerging: true },
      { binding: 'sales', header: 'Sales', format: 'n2' },
      { binding: 'expenses', header: 'Expenses', format: 'n2' },
      { binding: 'active', header: 'Active', allowMerging: true },
    ],
    itemsSource: new wijmo.collections.CollectionView(data, {
    	sortDescriptions: ['country', 'active']
    })
});