Posted 25 July 2023, 3:49 pm EST - Updated 25 July 2023, 3:54 pm EST
Cell click block
Posted by: pedro.moraes on 25 July 2023, 3:49 pm EST
-
-
Posted 26 July 2023, 5:24 am EST
Hi Pedro,
You could use the following css to hide the border of the selected cell:
.gc-selection { border-color: transparent; }To disable the editing on the Cell, you could use the EditStarting Event and cancel the operation:
sheet.bind(GC.Spread.Sheets.Events.EditStarting, function (sender, args) { // Check Condition // Stop Editing on Cell A1 if (args.row === 0 && args.col === 0) { args.cancel = true; } });You could add the following css to the .gc-formulaBar class to make it disabled:
.checked { pointer-events: none; }You could also set the protection on the sheet and lock the cells. Refer to the following docs: https://www.grapecity.com/spreadjs/docs/features/worksheet/celllock#site_main_content-doc-content_title
References:
EditStarting Event: https://www.grapecity.com/spreadjs/api/classes/GC.Spread.Sheets.Events#editstarting
Kindly refer to the attached sample and let us know if you face any issues.
Regards,
Ankit


