Datagrid inline editor prevent commit

Jmix 1.5
How can I prevent commits, add custom validations etc on the inline editor ?

Hi!

If you refer to the documentation, you can make sure that the cross-field validation is enabled ‘out of box’: DataGrid :: Jmix Documentation

You can also define your own field with your own restrictions; to do this, use the field generator handler:

    @Install(to = "usersTable.username", subject = "editFieldGenerator")
    private Field<?> usersTableUsernameEditFieldGenerator(
final DataGrid.EditorFieldGenerationContext<User> editorFieldGenerationContext) {
        TextField<String> textField = uiComponents.create(TextField.NAME);
        textField.addValidator(applicationContext.getBean(NotEmptyValidator.class));
        return textField;
    }

See also: DataGrid :: Jmix Documentation

Regards,
Dmitriy