Save button does not word fpr inline editing in datagrid

test_project
before_save
before_edit
after_save
after_reload

Hello all,

when I try to use inline editing for an Entity in a Datagrid, the save button does not save the changes.

Thanks in advance!

Hi Mika

If you check your code editable="true" you see the snake line
image

I see this as an indicator, that your loader is readonly.

Can you check your line
<loader id="testEntitiesDL" readOnly="false">

I think this is set to true in your case, correct ?

Regards
Felix

I changed the line but the problem the problem still occurs.

Hi Mika

https://docs.jmix.io/jmix/flow-ui/vc/components/dataGrid.html#auto-save

@Subscribe(id = "usersDc", target = Target.DATA_CONTAINER)
public void onUsersDcItemPropertyChange1(final InstanceContainer.ItemPropertyChangeEvent<User> event) {
    dataContext.save();
}

If you add a Testproject, it would be easier to help :wink:

Best regards
Felix