Skip to content
New issue

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

Custom message for zero rows in the grid. #88

Closed
vivektodi opened this issue Apr 24, 2015 · 13 comments
Closed

Custom message for zero rows in the grid. #88

vivektodi opened this issue Apr 24, 2015 · 13 comments

Comments

@vivektodi
Copy link

It would be great if we can give a custom message like "No records found" or maybe even show an image to user if the grid has zero rows because there is no underlying data.

@jimbuck
Copy link

jimbuck commented May 4, 2015

Anybody find an implementation or workaround for this?

@amcdnl
Copy link

amcdnl commented May 4, 2015

Ideally you would be able to include a template for no results. thoughts @ceolter ?

@ceolter
Copy link
Contributor

ceolter commented May 6, 2015

Yup I agree, I will get this in soon. Something easy to unblock this. Then in the future, a template.

@jovana
Copy link

jovana commented Aug 7, 2015

+1

2 similar comments
@jaggernoth
Copy link

+1

@scotthovestadt
Copy link
Contributor

+1

@ceolter
Copy link
Contributor

ceolter commented Oct 6, 2015

today's release has this. there is an overlay that can be overridden with your own template for 'no rows'. works in same way as template for 'loading'. explained in the docs.

@ceolter ceolter closed this as completed Oct 6, 2015
@carloshpds
Copy link

You can use overlayNoRowsTemplate ;)

@VINAY110474
Copy link

is there any option to display no data found when you not found anything in filter...?

@bowlereggs-edi
Copy link

this.gridOptions = {
localeText: { noRowsToShow: 'Put your message here ' },
}

@avinashbuddana
Copy link

avinashbuddana commented Feb 27, 2020

Overlay overlayNoRowsTemplate can be used
Example:
const overlayNoRowsTemplate= "No record found";

<AgGridReact
                       onGridReady={this.onGridReady}
                       columnDefs={this.state.columnDefs}
                       defaultColDef={this.state.defaultColDef}
                       rowData={data}
                       pagination={true}
                       reactNext={true}
                       animateRows
                        onCellClicked={this.showEvent.bind(this)}
                       paginationPageSize={this.state.paginationPageSize}
                       paginationNumberFormatter={this.state.paginationNumberFormatter}
                       overlayNoRowsTemplate={overlayNoRowsTemplate}
                   />

@bmadone
Copy link

bmadone commented Nov 22, 2021

is there any option to display no data found when you not found anything in filter...?

Do we have any solution to this?

@MoritzMeinhardt
Copy link

Our use case it that we use the externalFilter api of ag grid. And we would like to display some text 'All rows filtered' in case that all rows are filtered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests