Hi,
I need to change dynamically the "isMandatory" property of a column within a datagrid.
I tried using the following piece of code without success:
GridAPI.GridManager.GetGridById($parameters.GridId).getColumn($parameters.Binding).provider.isMandatory = $parameters.enabled;
Where I'm doing wrong?
Hi Daniele,
Refer to this post: https://www.outsystems.com/forums/discussion/72223/i-cannot-save-a-blank-in-the-date-column/#Post294847
GridAPI.GridManager.GetGridById($parameters.GridId).getColumn($parameters.Binding).provider.isRequired = $parameters.enabled;
I hope this helps you!
Kind regards,
Benjith Sam
Hi @Daniele Betti
Any feedback about this? Did the solution given by @Benjith Sam work?
Best Regards,GM
Sorry, I was on vacation!
No, the solution didn't work.
I also noticed that I have not well explained the goal: what I need is to change dynamically the "isMandatory" property of a CELL (not the entire column) within a datagrid.
Is that possible?