Skip to content
Snippets Groups Projects
Commit 994d5c87 authored by felmer's avatar felmer
Browse files

LMS-2240 Show a message if a cell of an editable column can not be edited.

SVN: 21462
parent d338b119
No related branches found
No related tags found
No related merge requests found
...@@ -1708,7 +1708,12 @@ public abstract class AbstractBrowserGrid<T/* Entity */, M extends BaseEntityMod ...@@ -1708,7 +1708,12 @@ public abstract class AbstractBrowserGrid<T/* Entity */, M extends BaseEntityMod
{ {
M model = event.getModel(); M model = event.getModel();
String columnID = event.getProperty(); String columnID = event.getProperty();
event.setCancelled(isEditable(model, columnID) == false); boolean editable = isEditable(model, columnID);
if (editable == false)
{
MessageBox.info("Not Editable", "Sorry, this table cell isn't editable", null);
}
event.setCancelled(editable == false);
} }
}); });
editorGrid.addListener(Events.AfterEdit, new Listener<GridEvent<M>>() editorGrid.addListener(Events.AfterEdit, new Listener<GridEvent<M>>()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment