Grid edit, save, cancel "global" buttons

Can you have a button “Edit” that when clicked will enable editting in the grid.
Meaning inline editing of values on any row any cell.
“Save” to save changes and “Cancel” to cancel changes.

If I understand your idea correctly, I would say kind of yes. There are two edit modes in Grid, buffered editor, which is row based and un-buffered mode, which is cell based. In un-buffered mode you can edit one cell at a time. There is no save/cancel button, the value is pushed directly to the container.

If you use this add-on, the experience is even smoother.

https://vaadin.com/directory#!addon/gridfastnavigation-add-on

So you can create Edit, Save and Cancel buttons your self. With Edit button you will enable un-buffered editor. Create logic to save the data to backend behind Save, and Cancel to retrieve current data from backend to undo changes.

Thank You

Here are some examples:
https://vaadin.com/components/vaadin-grid/java-examples/grid-editor

Thorsten Scheer:
Here are some examples:
https://vaadin.com/components/vaadin-grid/java-examples/grid-editor

Thorsten Scheer

Good morning, how are you? I tried in several ways to implement the logic (codes) of these examples in my code, but I was not successful, could you help me in my case? I’ll leave the link here for you to see, and help me understand what I can do to make the edit button work.

Thanks for listening!

https://vaadin.com/forum/thread/18525966/edit-off-grid-button

Robo Ninja:
Can you have a button “Edit” that when clicked will enable editting in the grid.
Meaning inline editing of values on any row any cell.
“Save” to save changes and “Cancel” to cancel changes.

https://vaadin.com/forum/thread/18525966/edit-off-grid-button

Tatu Lund:
If I understand your idea correctly, I would say kind of yes. There are two edit modes in Grid, buffered editor, which is row based and un-buffered mode, which is cell based. In un-buffered mode you can edit one cell at a time. There is no save/cancel button, the value is pushed directly to the container.

If you use this add-on, the experience is even smoother.

https://vaadin.com/directory#!addon/gridfastnavigation-add-on

So you can create Edit, Save and Cancel buttons your self. With Edit button you will enable un-buffered editor. Create logic to save the data to backend behind Save, and Cancel to retrieve current data from backend to undo changes.

https://vaadin.com/forum/thread/18525966/edit-off-grid-button

Desenvolvimento FJ Sistemas:

Tatu Lund:
If I understand your idea correctly, I would say kind of yes. There are two edit modes in Grid, buffered editor, which is row based and un-buffered mode, which is cell based. In un-buffered mode you can edit one cell at a time. There is no save/cancel button, the value is pushed directly to the container.

If you use this add-on, the experience is even smoother.

https://vaadin.com/directory#!addon/gridfastnavigation-add-on

So you can create Edit, Save and Cancel buttons your self. With Edit button you will enable un-buffered editor. Create logic to save the data to backend behind Save, and Cancel to retrieve current data from backend to undo changes.

https://vaadin.com/forum/thread/18525966/edit-off-grid-button

Hi Desenvolvimento FJ Sistemas, I understand you’d like to get help on your issue but this isn’t the way. Please refrain from quoting people in other threads directing them to your question.

Luis Gutierrez:

Desenvolvimento FJ Sistemas:

Tatu Lund:
If I understand your idea correctly, I would say kind of yes. There are two edit modes in Grid, buffered editor, which is row based and un-buffered mode, which is cell based. In un-buffered mode you can edit one cell at a time. There is no save/cancel button, the value is pushed directly to the container.

If you use this add-on, the experience is even smoother.

https://vaadin.com/directory#!addon/gridfastnavigation-add-on

So you can create Edit, Save and Cancel buttons your self. With Edit button you will enable un-buffered editor. Create logic to save the data to backend behind Save, and Cancel to retrieve current data from backend to undo changes.

https://vaadin.com/forum/thread/18525966/edit-off-grid-button

Hi Desenvolvimento FJ Sistemas, I understand you’d like to get help on your issue but this isn’t the way. Please refrain from quoting people in other threads directing them to your question.

OK, sorry