I have a radgrid with several rows. I want to allow the user to edit specific rows but not others. The other rows I need to calculate based on users input. I have all this working but I need to figure out how to keep the user from having access to edit the rows that I am editing client-side based on there input.
Example (ASP.Net AJAX):
Rows 1-5 are editable by the user
Rows 6 and 7 are calculated based on 1-5 and I am doing the calculation client-side via OnBatchEditCellValueChanged event.
I need to some how disable the ability of the user to edit rows 6 and 7 without loosing the ability to to calculate and update via the event.
Can I use the event OnBatchEditOpening and set args.get_cancel(true) based on the user clicking in rows 6 or 7? I have tried this but failed to get it to work. If this is possible? Please provide a sample of the script if so.