Hi Jorge,
Thanks for using Syncfusion products.
We can understand from your query that you are using “
Batch” edit mode since you have mentioned like read only cells.
We can achieve your requirement using “
CellEdit” event of the grid as follows,
<ej:Grid ID="OrdersGrid" runat="server" >
<ClientSideEvents CellEdit="cellEdit"/>
. . . .
<EditSettings AllowEditing="True" AllowAdding="True" AllowDeleting="True" EditMode="batch" ></EditSettings>
. . . .
</ej:Grid>
<script type="text/javascript">
function cellEdit(args)
{
//We have prevent editing for the cell which contains LastName as “Beckett”
if (args.columnName == "LastName" && args.value == "Beckett")
args.cancel = true;
}
</script>
|
If we misunderstood your requirement please provide more details about your requirement like in which editing mode you want to change the cells as read only and the provided information will help to analyze the requirement and provide you the response as early as possible.
Regards,
Gowthami V.