Skip to content

Instantly share code, notes, and snippets.

@pawelgradecki
Last active April 18, 2017 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pawelgradecki/bf04e86f7dcbfed27c2c8b85829eb154 to your computer and use it in GitHub Desktop.
Save pawelgradecki/bf04e86f7dcbfed27c2c8b85829eb154 to your computer and use it in GitHub Desktop.
GridRowSelected disable one column
function gridRowSelected(context) {
context.getFormContext().getData().getEntity().attributes.forEach(function (attr) {
if (attr.getName() === "odx_monthid") {
attr.controls.forEach(function (c) {
c.setDisabled(true);
})
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment