You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the following method to conditionally disable some rows to be edited in Grid
grid.getEditor().addOpenListener(new EditorOpenListener<SomeObject>() {
@Override
public void onEditorOpen(EditorOpenEvent<SomeObject> event) {
if (!event.getBean().isEditable()) {
grid.getEditor().cancel();
}
}
});
Vaadin Framework version (8.4.4)
Expected behavior:
Grid opens when isEditable() returns true and is not opened when it returns false.
Actual behavior:
There is no client side exception but I can see the following on the console log
Editor bind action is taking longer than expected (5000ms). Does your EditorHandler remember to call success() or fail()?
Also, I observed, that Grid is not responding to any click actions. For example Rendered button does not work anymore, Clicking header to change sort direction has stopped working and it is not possible to open column selection menu (in case you have hidable columns)
The text was updated successfully, but these errors were encountered:
One way you could workaround this issue, would be alternative method of disabling the editor opening. Since in normal cases it opens with mouse click, you could disable pointer events. This can be done by setting stylegenerator for row as follows:
Use the following method to conditionally disable some rows to be edited in Grid
Grid opens when isEditable() returns true and is not opened when it returns false.
There is no client side exception but I can see the following on the console log
Editor bind action is taking longer than expected (5000ms). Does your EditorHandler remember to call success() or fail()?
Also, I observed, that Grid is not responding to any click actions. For example Rendered button does not work anymore, Clicking header to change sort direction has stopped working and it is not possible to open column selection menu (in case you have hidable columns)
The text was updated successfully, but these errors were encountered: