[OutSystems Data Grid] Set isMandatory propery for a column via javascript in datagrid react
Reactive icon
Forge component by Platform Maintenance
Application Type


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

  • Set isRequired property instead of isMandatory..
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,

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? 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.