카테고리 없음
ag-grid deselectAll 할 때 주의
베짱이챈
2022. 11. 20. 20:35
728x90
반응형
deselectAll을 하려면
DataGrid를 ref로 접근해야한다.
DataGrid props 중 onGridReady할 때 데이터를 setRow()해줘야한다.
// init 처리
handleOnGridReady(params) {
this.gridApi = params.api;
this.onRefreshDataGrid();
}
row 데이터 선택하는 방법은
DataGrid props에
rowSelection="single" 또는 'multiple"
suppressRowClickSelection={false}로 줘서 체크박스 없이 선택되게 한다.
onRow
728x90
반응형