vaadin / vaadin/framework

Custom message in grid when data provider returns empty data

Open
#9,070 2 comments 16 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
1.8k
Forks
717
Avg merge
2d 6h
Merged PRs (30d)
3

Description

At present if data provider do not return any data, then grid will be rendered with empty content. It looks strange and unconvenient to end user. It should be possible to define custom error message (or custom component) which will render in grid's content area in such cases.

Having placeholder when there are no data available is generally accepted practice. For example, TableView in JavaFX has property 'placeholder' for such purpose.

Folks requested this feature 5 years ago, and still we haven't any good solutions for that.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the grid's content rendering when its data provider returns no rows. Review the existing Grid API and related tests, then define and verify the empty-state behavior for a configurable message or component.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.