View Full Version : Mendatory cells in grid

11 May 2011, 4:40 AM
is there any way we can force user to enter something in a cell of grid.

basically we have grids with several columns and some of the column cells must have values before form is saved.

please point to the right direction.

12 May 2011, 1:07 AM
So you have an editor grid plus a "Save" button?

I am validating the grid inside the button's click handler.
When invalid, I display a message above the grid and start the inline editor at the first invalid table cell (grid.startEditing(row, column)).

In you case where validation only needs to ensure that a value is entered at all, it would maybe be more usable to have the cell renderer display an error message inline as long as the cell is blank.