Blazor 트리 그리드 열 선택 개요

    Ignite UI for Blazor의 Blazor Tree Grid Column Selection 기능은 한 번의 클릭으로 전체 열을 선택하고 강조 표시하는 간소화되고 Excel과 유사한 방법을 제공합니다. columnSelection 입력을 통해 활성화할 수 있습니다. 풍부한 API 덕분에 이 기능을 사용하면 선택 상태를 쉽게 조작하고, 선택한 분수에서 데이터를 추출하고, 데이터 분석 작업을 수행하고, 시각화할 수 있습니다.

    Blazor Tree Grid Column Selection Example

    아래 샘플은 IgbTreeGrid열 선택 동작의 세 가지 유형을 보여줍니다. 사용 가능한 각 선택 모드를 활성화하려면 아래 열 선택 드롭다운을 사용하세요.

    * 단가(Unit Price)단종(Discontinued)은 열 선택이 비활성화된 상태입니다.

    EXAMPLE
    DATA
    MODULES
    RAZOR
    CSS

    Like this sample? Get access to our complete Ignite UI for Blazor toolkit and start building your own apps in minutes. Download it for free.

    Basic Usage

    열 선택 기능은 다음을 통해 활성화할 수 있습니다. ColumnSelection 입력, 소요되는 GridSelectionMode 가치.

    상호 작용

    기본 선택 모드는 None 입니다. Single 또는 Multiple으로 설정하면 표시되는 모든 열이 Selectable 집니다. 즉, 열을 선택하려면 하나를 클릭하기만 하면 됩니다. 그러면 해당 열이 Selected로 표시됩니다. 열을 선택할 수 없는 경우 마우스를 가져가는 동안 헤더에 선택 스타일이 적용되지 않습니다.

    The Multi Column Headers feature does not reflect on the Selectable input. The ColumnGroupComponent is Selectable, if at least one of its children has the selection behavior enabled. In addition, the component is marked as Selected if all of its Selectable descendants are Selected.

    * 개인 세부정보 열 그룹에서는 열 ID제목만 선택할 수 있습니다.

    EXAMPLE
    DATA
    MODULES
    RAZOR
    CSS

    Keyboard Combinations

    The keyboard combinations are available only when the grid ColumnSelection input is set to multiple.

    열 선택 기능의 키보드 탐색에는 두 가지 시나리오가 있습니다.

    • 다중 열 선택 - 보유 Ctrl 키 + 딸깍 하는 소리선택 가능 헤더 셀.
    • 범위 열 선택 -Shift 키를 누른 채 클릭하면 사이에서 선택 가능한 모든 열이 선택됩니다.

    API Manipulations

    그만큼 API 몇 가지 추가 기능을 제공합니다. 눈에 보이지 않는 열은 모든 숨겨진 열은 다음과 같이 표시될 수 있습니다. Selected 해당 설정을 통해 세터.

    The above statement also applies to the ColumnGroupComponent, except that when the Selected property is changed it changes the state of its descendants.

    API 조작에 관한 자세한 내용은 API 참조 섹션에서 확인할 수 있습니다.

    Styling

    사전 정의된 테마 외에도 사용 가능한 CSS 속성 중 일부를 설정하여 그리드를 추가로 사용자 정의할 수 있습니다. 일부 색상을 변경하려면 먼저 그리드에 대한 class 설정해야 합니다.

    <IgbTreeGrid class="grid"></IgbTreeGrid>
    razor

    그런 다음 관련 CSS 속성을 이 클래스로 설정합니다.

    .grid {
        --ig-grid-row-selected-background: #0062A3;
        --ig-grid-row-selected-text-color: #ecaa53;
        --ig-grid-row-selected-hover-background: #0062A3;
        --ig-grid-header-selected-text-color: #ecaa53;
        --ig-grid-header-selected-background: #0062A3;
        --ig-grid-row-selected-hover-text-color: #ecaa53;
        --ig-grid-row-selected-hover-background: #0062A3;
    }
    css

    Demo

    EXAMPLE
    DATA
    MODULES
    RAZOR
    CSS

    API References

    열 선택 UI에는 아래에 나열된 몇 가지 API가 더 있습니다.

    IgbTreeGrid properties:

    IgbColumn properties:

    IgbColumnGroup properties:

    IgbTreeGrid events:

    • OnColumnsSelectionChange

    Additional Resources

    우리 커뮤니티는 활동적이며 항상 새로운 아이디어를 환영합니다.