React Horizontal Scrolling

    Ignite UI for React React 데이터 그리드의 너비보다 큰 열의 총 너비를 설정하면 가로 스크롤이 활성화됩니다.

    React Horizontal Scrolling Example

    Setting Default Column Width

    <IgrDataGrid
        height="100%"
        width="100%"
        autoGenerateColumns="true"
        defaultColumnMinWidth={300}
        dataSource={this.data}/>
    

    Setting Individual Column Widths

    <IgrDataGrid
        height="100%"
        width="100%"
        autoGenerateColumns="false"
        dataSource={this.data}>
            <IgrTextColumn field="FirstName" headerText="First Name" width="300"/>
            <IgrTextColumn field="LastName" headerText="Last Name" width="300"/>
            <IgrNumericColumn field="Age" headerText="Age" width="300"/>
            <IgrDateTimeColumn field="Birthday" headerText="Birth Date" width="300"/>
            <IgrTextColumn field="Street" headerText="Street Address" width="300"/>
            <IgrTextColumn field="City" headerText="City and State" width="300"/>
            <IgrTextColumn field="Salary" headerText="Salary" width="300"/>
            <IgrTextColumn field="Sales" headerText="Sales" width="300"/>
        </IgrDataGrid>
    

    API References