이 컨트롤은 더 이상 사용되지 않고 그리드 구성 요소로 대체되었으므로 해당 컨트롤로 마이그레이션하는 것이 좋습니다. 새로운 기능은 제공되지 않으며 버그 수정은 우선순위에서 제외됩니다. 코드베이스를 Data Grid로 마이그레이션하는 데 도움이 필요하거나 질문이 있으면 지원팀에 문의하세요.
Web Components 그리드 셀 병합
Ignite UI for Web Components 데이터 테이블/데이터 그리드는 셀 병합을 지원합니다. 옵트인(opt-in)하고 특정 열에 대한 인접한 형제 레코드에 동일한 값이 포함된 경우를 감지할 수 있습니다. 셀이 활성 상태이거나, 선택되어 있지 않거나, 편집 모드에 있지 않은 동안에는 값이 셀 전체에 표시됩니다.
<!DOCTYPE html><html><head><title>DataGridCellMerging</title><metacharset="UTF-8" /><linkrel="shortcut icon"href="https://static.infragistics.com/xplatform/images/browsers/wc.png" ><linkrel="stylesheet"href="https://fonts.googleapis.com/icon?family=Material+Icons" /><linkrel="stylesheet"href="https://fonts.googleapis.com/css?family=Kanit&display=swap" /><linkrel="stylesheet"href="https://fonts.googleapis.com/css?family=Titillium Web" /><linkrel="stylesheet"href="https://static.infragistics.com/xplatform/css/samples/shared.v8.css"type="text/css" /></head><body><divid="root"><divclass="container sample"><divclass="options horizontal"><spanclass="options-label">Merged Cell Mode: </span><selectid="selectionDropBox"class="options-label"><option>Always</option><option>Never</option><option>OnlyWhenSorted</option></select></div><igc-data-gridid="grid"width="100%"height="100%"merged-cell-mode="Always"auto-generate-columns="false"is-column-options-enabled="true"><igc-text-columnfield="OrderID"header-text="ID"width="*>90"horizontal-alignment="center"></igc-text-column><igc-date-time-columnfield="OrderDate"header-text="Order Date"width="*>130"></igc-date-time-column><igc-text-columnfield="ShipName"header-text="Name"width="*>185"></igc-text-column><igc-numeric-columnfield="Freight"header-text="Freight"width="*>115"positive-prefix="$"min-fraction-digits="2"></igc-numeric-column><igc-date-time-columnfield="ShippedDate"header-text="Ship Date"width="*>125"horizontal-alignment="right"></igc-date-time-column><igc-text-columnfield="ShipAddress"header-text="Shipping Address"width="*>250"></igc-text-column><igc-text-columnfield="ShipCity"header-text="City"width="*>130"></igc-text-column><igc-text-columnfield="ShipCountry"header-text="Country"width="*>110"></igc-text-column></igc-data-grid></div></div><!-- This script is needed only for parcel and it will be excluded for webpack -->
<% if (false) { %><scriptsrc="src/index.ts"></script><% } %>
</body></html>html
/* shared styles are loaded from: *//* https://static.infragistics.com/xplatform/css/samples */css
이 샘플이 마음에 드시나요? 당사의 완전한 Ignite UI for Web Components 툴킷에 액세스하여 몇 분 만에 나만의 앱을 빌드하기 시작하세요. 무료로 다운로드하세요.
개요
Web Components 데이터 그리드의 셀 병합은 전체 Web Components 그리드 또는 개별 열의 옵션을 사용하여 mergedCellMode 구성할 수 있습니다. 이 속성은 아래에 나열된 다음 옵션 중 하나로 설정할 수 있습니다.