Hi Experts,
i need to edit the two fields in the nested grid View, can any body help me on this
Below image are the two field i need to unlock,please suggest me on this.
Hi Experts,
i need to edit the two fields in the nested grid View, can any body help me on this
Below image are the two field i need to unlock,please suggest me on this.
Your code works for the Editable Grid, but I also want to disable fields on the 'Nested' grid... When I use the same code for the OnRecordSelect event of the nested grid, I get an error:
Cannot read properties of null (reading 'data')
Here is the code I am using for both the Editable Grid and the nested Editable Grid:
function setGridReadOnly(context) {
var entityObject = context.getFormContext().data.entity;
entityObject.attributes.forEach(function (attribute, i) {
var ctrl = attribute.controls.get(0);
ctrl.setDisabled(true);
})
}
hi,
Call the following function for the OnRecordSelect editable grid event. Also check "Pass execution context as first parameter".
please verify if this useful
Regards.
function onSelectSubGrid(context) { var subGrid = context.getFormContext().data.entity; subGrid.attributes.forEach(function (field, i) { field.controls.get(0).setDisabled(false); }); }
Its not supported:
docs.microsoft.com/.../make-grids-lists-editable-custom-control
Hi Mike,
Those two fields what i mentioned, is from different entity, for that how to remove unlock?
What are the field types of those two locked fields? Are they on a different record type/entity than the actual subgrid entity?
They look like they might be related records from a 3rd entity (contact) where the parent child on the form is something else. If thats the case you wont be able to edit those:
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,532 Super User 2024 Season 2
Martin Dráb 228,501 Most Valuable Professional
nmaenpaa 101,148