Is it possible to disable editing for a specific row of the grid,for example, disable editing for the row number 5 of the grid?
Hi Francisco,
To disable the Grid row editing - Explicitly set the isReadOnly property to True value for that specific row using JS node.
JS Snippet:
const grid = OutSystems.GridAPI.GridManager.GetGridById($parameters.GridId) grid.provider._rows[$parameters.RowIndex].isReadOnly = $parameters.IsReadOnly;
Demo Screen: DG_SetRowReadOnly
I hope this helps you!
Kind regards,
Benjith Sam
Thank you Benjith, that works
You're welcome, Francisco. Glad to help :)
Hey @Benjith Sam
firstly, congrats on this solution !
secondly... is it possible to apply this to a certain cell ? been trying to, but still not able...
thank you!
You're welcome, João.
For your use case, try following the approach mentioned in these posts:
https://www.grapecity.com/forums/wijmo/flexgrid-how-to-make-a-particular-cell-editable-in-a-read-only-column#43349
https://www.grapecity.com/forums/wijmo/flexgrid-make-a-particular-cell-readonly#42630
https://www.grapecity.com/forums/wijmo/how-to-make-cell-non-editable-or-readonly-cell#32294
https://www.grapecity.com/forums/wijmo/flexgrid-making-row-cells-read-only-based-on-row-binding#35059
If you still need a help. I can give it a shot if you can provide additional details about the task and share a sample OML file with your implementation.
Hi João, I'm trying to do kind of the same as you on a datagrid. For my case, I need to be able to change this value to False. Did you find a way to perform this ?
Regards
Hello Francisco,
There are other solutions in the community which worked in Traditional Web DataGrid for users to freeze the rows and making them read-only.
You can try them in reactive as well.
https://www.outsystems.com/forums/discussion/87411/read-only-rows-of-data-grid/
Let me know if it works for you!
Regards,
Nikhil