Hi Team,
I want to make my rows Read only of Data Grid based upon some Status. How Can I achieve this?
Example:
I am having one status column having values of Approved and Rejected. If Status is Approved then that row should be read only.
Thanks
Sourav
Hi Sourav Sandhu,
The same case solved, please check this link.
outsystems.com/forums/discussion/54693/outsystems-data-grid-web-using-cancel-true-with-beginningedit-not-working/
thanks,
Ramesh
Hi Sourav
You can add the below code:
var makeReadonlyCell = function(gObj)
{
gObj.grid.beginningEdit.addHandler((s,e) => {
var _flexGrid = gObj.grid; if(_flexGrid.getCellData(s.selection.row, _flexGrid.columns.getColumn('StatusId').index) === 8 )
{ e.cancel = true;
}
);}
Get the Status index from the entity and mention above in the If condition.
I hope this helps you.
Regards