Hi - I am using Ignite UI 2015.2 version. How to make cell read only/editable based on user role. I am using editRowStarting event, But not able to get user role information in this method.
Thanks,
Ravi Kumar
Hello Ravi Kumar,
Based on the rowID from editRowStarting you can find the record by key - http://www.igniteui.com/help/api/2016.1/ui.iggrid#methods:findRecordByKey.
And if the user role information is stored in each record, you would be able to reach it.
Thanks for your quick response. I already implemented logic by storing user role in each row. I am looking for optimal solution with out storing user information in the grid.
If you want some cells from a column to read only and some not, storing info for this in each record is great approach. Probably the most performant.
But if you want all the cells from a column to be read only, then you can use columnSettings - http://www.igniteui.com/help/api/2016.1/ui.iggridupdating#options:columnSettings.readOnly