We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
When using column groups, define sort props inside groups not the direct children;
let headerGroup = <ColumnGroup> <Row> <Column header="Brand" rowSpan={3} field="brand" sortable={true}/> <Column header="Sale Rate" colSpan={4} /> </Row> <Row> <Column header="Sales" colSpan={2} /> <Column header="Profits" colSpan={2} /> </Row> <Row> <Column header="Last Year" field="lastYearSale" sortable={true}/> <Column header="This Year" field="thisYearSale" sortable={true}/> <Column header="Last Year" field="lastYearProfit" sortable={true}/> <Column header="This Year" field="thisYearProfit" sortable={true}/> </Row> </ColumnGroup>; let footerGroup = <ColumnGroup> <Row> <Column footer="Totals:" colSpan={3} /> <Column footer="$506,202" /> <Column footer="$531,020" /> </Row> </ColumnGroup>; render() { ( return <DataTable value={this.state.sales} headerColumnGroup={headerGroup} footerColumnGroup={footerGroup}> <Column field="brand" /> <Column field="lastYearSale" /> <Column field="thisYearSale" /> <Column field="lastYearProfit" /> <Column field="thisYearProfit" /> </DataTable> ) }
Sorry, something went wrong.
Thank you for the solution, worked for me!
cagataycivici
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: