React Horizontal Scrolling

    A Tabela de Dados Ignite UI for React / Suporte à Grade de Dados A rolagem horizontal é ativada definindo a largura total das colunas maior que a largura da grade de dados 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